-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathglm.mids.Rd
53 lines (48 loc) · 1.55 KB
/
glm.mids.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lm.R
\name{glm.mids}
\alias{glm.mids}
\title{Generalized linear model for \code{mids} object}
\usage{
glm.mids(formula, family = gaussian, data, ...)
}
\arguments{
\item{formula}{a formula expression as for other regression models, of the
form response ~ predictors. See the documentation of \code{\link{lm}} and
\code{\link{formula}} for details.}
\item{family}{The family of the glm model}
\item{data}{An object of type \code{mids}, which stands for 'multiply imputed
data set', typically created by function \code{mice()}.}
\item{\dots}{Additional parameters passed to \code{\link{glm}}.}
}
\value{
An objects of class \code{mira}, which stands for 'multiply imputed
repeated analysis'. This object contains \code{data$m} distinct
\code{glm.objects}, plus some descriptive information.
}
\description{
Applies \code{glm()} to a 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)
# logistic regression on the imputed data
fit <- glm.mids((hyp == 2) ~ bmi + chl, data = imp, family = binomial)
fit
}
\references{
Van Buuren, S., Groothuis-Oudshoorn, C.G.M. (2000)
\emph{Multivariate Imputation by Chained Equations: MICE V1.0 User's manual.}
Leiden: TNO Quality of Life.
}
\seealso{
\code{\link{with.mids}}, \code{\link{glm}}, \code{\link[=mids-class]{mids}},
\code{\link{mira}}
}
\author{
Stef van Buuren, Karin Groothuis-Oudshoorn, 2000
}
\keyword{multivariate}