aMNLFA.scores: aMNLFA score generating function

View source: R/aMNLFA_scores.R

aMNLFA.scoresR Documentation

aMNLFA score generating function

Description

This function creates scores generated using aMNLFA. Can only be run after the final model has been fit – i.e., after the aMNLFA.final function.

Usage

aMNLFA.scores(input.object)

Arguments

input.object

The aMNLFA object (created using the aMNLFA.object function) which provides instructions for the function.

Value

No return value. Generates an INP file to be run in Mplus to generate scores in the directory specified in the aMNLFA.object.

Examples


 ## Not run: 
 wd <- tempdir()
 first<-paste0(system.file(package='aMNLFA'),"/extdata")
 the.list <- list.files(first,full.names=TRUE)
 file.copy(the.list,wd,overwrite=TRUE)
 
 ob <- aMNLFA::aMNLFA.object(dir = wd, 
 mrdata = xstudy, 
 indicators = paste0("BIN_", 1:12),
 catindicators = paste0("BIN_", 1:12), 
 meanimpact = c("AGE", "GENDER", "STUDY"), 
 varimpact = c("AGE", "GENDER", "STUDY"), 
 measinvar = c("AGE", "GENDER", "STUDY"),
 factors = c("GENDER", "STUDY"),
 ID = "ID",
 thresholds = FALSE)
 
 aMNLFA.scores(ob)
 
## End(Not run)

aMNLFA documentation built on March 18, 2022, 6:18 p.m.

Related to aMNLFA.scores in aMNLFA...