m3p: Three-parameter state-trait ordinal regression

View source: R/m3p.R

m3pR Documentation

Three-parameter state-trait ordinal regression

Description

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.

Usage

m3p(formula, data, id)

Arguments

formula

An object of class formula.

data

A data frame containing the variables in the model.

id

A variable name for the subjects of the data.

Value

A fitted three-parameter model object with a continous response and predictor ordinal variables extracted from formula.

Author(s)

Prince P. Osei and Philip T. Reiss

References

Osei, P. P. and Reiss, P. T. (2022). Ordinal state-trait regression for intensive longitudinal data. Under revision.

See Also

store

Examples

## maybe something with simulated data...

pestore/store documentation built on June 25, 2022, 4:29 a.m.