pomfit.Rd
train data must be the training data without labels. Labels should be provided in trainLabels.
pomfit(train, trainLabels, linkfunction = "logistic")
train | Training data of numeric type without labels. |
---|---|
trainLabels | Tags for each instance of training data. Must be factors. |
linkfunction | link function to be used in the ordinal logistic regression fit. Possible functions are: logistic','probit','loglog','cloglog' or 'cauchit'. |
the fitted model.
dattrain<-read.table("train_balance-scale.0", sep=" ")#> Warning: cannot open file 'train_balance-scale.0': No such file or directory#> Error in file(file, "rt"): cannot open the connectionfit<-pomfit(dattrain[,-ncol(dattrain)],as.factor(dattrain[,ncol(dattrain)]),"logistic")#> Error in is.factor(x): object 'dattrain' not found