aMNLFA.itemplots: aMNLFA item plotting function

View source: R/aMNLFA_itemplots.R

aMNLFA.itemplotsR Documentation

aMNLFA item plotting function

Description

This function generates plots of item endorsement by time, and by each covariate. This is necessary for determining which covariates to use in the MNLFA.

Usage

aMNLFA.itemplots(input.object)

Arguments

input.object

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

Examples

## Not run: 
 wd <- tempdir()
 first<-paste0(system.file(package='aMNLFA'),"/examplefiles")
 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.itemplots(ob)
 
## End(Not run)

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