joint_probabilities {mvord} | R Documentation |
Extracts fitted Probabilities for Multivariate Ordinal Regression Models.
Description
Extracts fitted probabilities for given response categories from a fitted model of class 'mvord'
.
Usage
joint_probabilities(
object,
response.cat,
newdata = NULL,
type = "prob",
subjectID = NULL,
newoffset = NULL,
...
)
Arguments
object |
an object of class |
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 |
|
subjectID |
(optional) vector specifying for which subjectIDs the predictions |
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