Learn R Programming

ordinalCont (version 0.4)

print.predict.ocm: Print the output of predict method

Description

Print method for class predict.ocm

Usage

"print"(x, ...)

Arguments

x
an object of class predict.ocm
...
further arguments passed to or from other methods

Details

The table of predictions from predict.ocm is printed.

See Also

predict.ocm, ocm

Examples

Run this code
ANZ0001.ocm <- ANZ0001[ANZ0001$cycleno==0 | ANZ0001$cycleno==5,]
ANZ0001.ocm$cycleno[ANZ0001.ocm$cycleno==5] <- 1
fit.overall <- ocm(overall ~ cycleno + age + bsa + treatment, data=ANZ0001.ocm)
pred <- predict(fit.overall)
print(pred)

Run the code above in your browser using DataLab