train data must be the training data without labels. Labels should be provided in trainLabels.

pomfit(train, trainLabels, linkfunction = "logistic")

Arguments

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'.

Value

the fitted model.

Examples

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 connection
fit<-pomfit(dattrain[,-ncol(dattrain)],as.factor(dattrain[,ncol(dattrain)]),"logistic")
#> Error in is.factor(x): object 'dattrain' not found