predict.gemm: Predict method for general monotone models.

Description Usage Arguments Details Value See Also Examples

View source: R/gemmquick.R

Description

predict.gemm is used to get fitted values from gemm ojects. Can also be used to get correct, incorrect, and ties for all paired comparisons of cases in model.

Usage

1
2
## S3 method for class 'gemm'
predict(object, newdata = NULL, tie.struct = FALSE, ...)

Arguments

object

an object of the class gemm.

newdata

optional data frame, currently not functional.

tie.struct

option to return corrects, incorrects, and ties based on fitted values.

...

other arguments to internal functions.

Details

Will eventually include functionality to generate estimates based on new data.

Value

Output depends on tie.struct argument. Output is either:

y

matrix of fitted values or a data.frame of correct, incorrect, and tied pairs.

See Also

gemm

Examples

1
2
3
  data(mtcars)
  gemm.model <- gemm(mpg ~ disp + cyl, data = mtcars, check.convergence = TRUE, n.beta = 200)
  predict(gemm.model, tie.struct = TRUE)

jchrszcz/gemmR documentation built on May 18, 2019, 10:24 p.m.