m3p | R Documentation |
This function fits a "vanilla" regression model for a repeated ordinal response and an
ordinal predictor. On the latent scale this is a linear model with a random person effect
and three fixed effects:
the intercept, the effect of the trait (person-level median of the predictor),
and the effect of the deviation of state (current predictor value) from trait. This model
model serves as a baseline with which the more flexible model implemented by store
may be compared.
See Osei and Reiss (2022) for details.
m3p(formula, data, id)
formula |
An object of class |
data |
A data frame containing the variables in the model. |
id |
A variable name for the subjects of the |
A fitted three-parameter model object with a continous response and predictor ordinal
variables extracted from formula
.
Prince P. Osei and Philip T. Reiss
Osei, P. P. and Reiss, P. T. (2022). Ordinal state-trait regression for intensive longitudinal data. Under revision.
store
## maybe something with simulated data...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.