File: lm.mids.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 (48 lines) | stat: -rw-r--r-- 1,485 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lm.R
\name{lm.mids}
\alias{lm.mids}
\title{Linear regression for \code{mids} object}
\usage{
lm.mids(formula, data, ...)
}
\arguments{
\item{formula}{a formula object, with the response on the left of a ~
operator, and the terms, separated by + operators, on the right. See the
documentation of \code{\link{lm}} and \code{\link{formula}} for details.}

\item{data}{An object of type 'mids', which stands for 'multiply imputed data
set', typically created by a call to function \code{mice()}.}

\item{\dots}{Additional parameters passed to \code{\link{lm}}}
}
\value{
An objects of class \code{mira}, which stands for 'multiply imputed
repeated analysis'.  This object contains \code{data$m} distinct
\code{lm.objects}, plus some descriptive information.
}
\description{
Applies \code{lm()} to multiply imputed data set
}
\details{
This function is included for backward compatibility with V1.0. The function
is superseded by \code{\link{with.mids}}.
}
\examples{
imp <- mice(nhanes)
fit <- lm.mids(bmi ~ hyp + chl, data = imp)
fit
}
\references{
Van Buuren, S., Groothuis-Oudshoorn, K. (2011). \code{mice}:
Multivariate Imputation by Chained Equations in \code{R}. \emph{Journal of
Statistical Software}, \bold{45}(3), 1-67.
\doi{10.18637/jss.v045.i03}
}
\seealso{
\code{\link{lm}}, \code{\link{mids}}, \code{\link{mira}}
}
\author{
Stef van Buuren, Karin Groothuis-Oudshoorn, 2000
}
\keyword{multivariate}