joint_probabilities: Extracts fitted Probabilities for Multivariate Ordinal...

Description Usage Arguments Details See Also

View source: R/predict.R

Description

Extracts fitted probabilities for given response categories from a fitted model of class 'mvord'.

Usage

1
2
joint_probabilities(object, response.cat, newdata = NULL, type = "prob",
  subjectID = NULL, newoffset = NULL, ...)

Arguments

object

an object of class 'mvord'.

response.cat

vector or matrix with response categories (for each subject one row of length equal to the number of multiple measurements).

newdata

(optional) data frame of new covariates and new responses. The names of the variables should correspond to the names of the variables used to fit the model. By default the data on which the model was estimated is considered.

type

"prob" for joint probabilities and "cum.prob" for joint cumulative probabilities.

subjectID

(optional) vector specifying for which subjectIDs the predictions
or fitted values should be computed.

newoffset

(optional) list of length equal to the number of outcomes, each element containing a vector of offsets to be considered.

...

further arguments passed to or from other methods.

Details

The current implementation supports only in-sample predictions. The row names of the output correspond to the subjectIDs.

See Also

predict.mvord, marginal_predict


mvord documentation built on March 17, 2021, 5:08 p.m.