File: mids2mplus.Rd

package info (click to toggle)
r-cran-mice 3.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,380 kB
  • sloc: cpp: 121; sh: 25; makefile: 2
file content (55 lines) | stat: -rw-r--r-- 1,662 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mids2mplus.R
\name{mids2mplus}
\alias{mids2mplus}
\title{Export \code{mids} object to Mplus}
\usage{
mids2mplus(
  imp,
  file.prefix = "imp",
  path = getwd(),
  sep = "\\t",
  dec = ".",
  silent = FALSE
)
}
\arguments{
\item{imp}{The \code{imp} argument is an object of class \code{mids},
typically produced by the \code{mice()} function.}

\item{file.prefix}{A character string describing the prefix of the output
data files.}

\item{path}{A character string containing the path of the output file.  By
default, files are written to the current \code{R} working directory.}

\item{sep}{The separator between the data fields.}

\item{dec}{The decimal separator for numerical data.}

\item{silent}{A logical flag stating whether the names of the files should be
printed.}
}
\value{
The return value is \code{NULL}.
}
\description{
Converts a \code{mids} object into a format recognized by Mplus, and writes
the data and the Mplus input files
}
\details{
This function automates most of the work needed to export a \code{mids}
object to \code{Mplus}. The function writes the multiple imputation datasets,
the file that contains the names of the multiple imputation data sets and an
\code{Mplus} input file. The \code{Mplus} input file has the proper file
names, so in principle it should run and read the data without alteration.
\code{Mplus} will recognize the data set as a multiply imputed data set, and
do automatic pooling in procedures where that is supported.
}
\seealso{
\code{\link[=mids-class]{mids}}, \code{\link{mids2spss}}
}
\author{
Gerko Vink, 2011.
}
\keyword{manip}