Learn R Programming

gvcm.cat (version 1.3)

predict.gvcm.cat: Predict Method for gvcm.cat Fits

Description

Obtains predictions from a fitted gvcm.cat object.

Usage

## S3 method for class 'gvcm.cat':
predict(object, newdata, type = "link", ...)

Arguments

object
a fitted object of class gvcm.cat
newdata
a data frame in which to look for variables with which to predict
type
the type of prediction required. The default is on the scale of the linear predictors; the alternative "response" is on the scale of the response variable. Thus for a binomial model the default predictions are of log-odds (probabilities on lo
...
further arguments passed to or from other methods

Value

  • fitpredictions
  • fit.refittedpredictions assuming refitted coefficients
  • fit.omlpredictions assuming maximum likelihood estimates
  • na.actioninformation returned by model.frame on the special handling of NAs; currently always na.omit

Details

Observations containing NAs are always omitted.

See Also

Function gvcm.cat

Examples

Run this code
## continues example of function gvcm.cat 
newdata <- simulation(200, covariates, NULL, true.f, true.coefs , binomial(), seed=789)
prediction <- predict.gvcm.cat(m1, newdata)

Run the code above in your browser using DataLab