Learn R Programming

mxmmod

This package provides a convenient interface for building Measurement Model of Derivatives (MMOD; Estabrook, 2015) in OpenMx.

Installing

Install in R with:

devtools::install_github('khusmann/mxmmod')

Usage

data(nlsy97depression)
# Fit one factor MMOD
structure <- list(
  F1 = c('nervous', 'down', 'depressed', 'calm', 'happy')
)
mmod_model <- mxMmodModel(data=nlsy97depression,
                          modelName='1 Factor MMOD',
                          idvar='pid', timevar='occasion', structure=structure)
mmod_fit <- OpenMx::mxRun(mmod_model)
summary(mmod_fit)

Copy Link

Version

Install

install.packages('mxmmod')

Monthly Downloads

255

Version

1.1.0

License

Apache License 2.0

Maintainer

Kyle D. Husmann

Last Published

May 18th, 2021

Functions in mxmmod (1.1.0)

nlsy97depression

NLSY97 Longitudinal Depression Scale Data
mxMmodModel

Create an MMOD
ContrastsGOLD

Generate GOLD contrasts
time_delay_embed

Generate Time Delay Embeddings