writeToMplus: Facilitate multiply-imputed data for use in Mplus

Description Usage Arguments See Also Examples

View source: R/writeToMplus.R

Description

Facilitate multiply-imputed data for use in Mplus

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
writeToMplus(
  dataList,
  dataDir,
  miDir,
  datPrefix = "data_",
  listName = "dataList.txt",
  colName = "dataNames.txt",
  missing = "-9999",
  ...
)

Arguments

dataList

list of data.frame objects.

dataDir

character string of the file path for exported data.

miDir

character string of the name of the directory where the imputed files will be written.

datPrefix

character string of the name-prefix of the imputed files.

listName

character string of the text file listing the names of the imputed files.

colName

character string of the file containing the column names of the imputed data.

missing

character string of the missing data code.

...

additional parameters to be passed to write.table.

See Also

write.table for a list of options to pass via ....

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Create example data
data(iris)
irisList <- rep(list(iris), 10) 

## Basic usage
## Not run:                               
  writeToMplus(                       
    dataList = irisList,              
    dataDir  = "my/example/directory",
    miDir    = "miFiles"              
  )                                   

## End(Not run)                                     

ppanko/immapTools documentation built on Nov. 21, 2019, 12:28 a.m.