write.inp.file: helper function for writing out Mplus inputs

Description Usage Arguments Value Examples

View source: R/write_inp_file.R View source: R/aMNLFA_sample.R

Description

This function generates the initial itemwise aMNLFA models.

Usage

1
write.inp.file(df, outfile)

Arguments

df

- the Mplus code to be written out, in a data frame

outfile

- a directory to which the Mplus code should be written

Value

outcharacter - string with slash at the end deleted

Examples

1
2
3
4
 wd <- tempdir()
 first<-paste0(system.file(package='aMNLFA'),"/examplefiles")
 somestring <- as.data.frame("This is some text which would be written to an Mplus file.")
 write.inp.file(somestring, first)

vtcole/aMNLFA documentation built on Nov. 7, 2021, 6:11 p.m.