get_lrt_scf: get_lrt_scf() compares the output of two MPLUS nested models,...

View source: R/get_lrt_scf.R

get_lrt_scfR Documentation

get_lrt_scf() compares the output of two MPLUS nested models, and calculates the adjusted LRT. The mplus objects needs to be generated with MplusAutomation::mplusObject()

Description

get_lrt_scf() compares the output of two MPLUS nested models, and calculates the adjusted LRT. The mplus objects needs to be generated with MplusAutomation::mplusObject()

Usage

get_lrt_scf(model_0, model_1)

Arguments

model_0

is de constrained model

model_1

is the model withe free parameter or parameters

Details

simple wrapper for LRT adjusted test (see https://www.statmodel.com/chidiff.shtml).

Value

a string with results one could paste into the manuscipt

Examples


get_lrt_scf(m00, m01) %>% knitr::kable()


dacarras/r4sda documentation built on Nov. 9, 2023, 10:17 a.m.