File: with.imputationList.Rd

package info (click to toggle)
r-cran-mitools 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 332 kB
  • sloc: makefile: 2
file content (35 lines) | stat: -rwxr-xr-x 1,212 bytes parent folder | download | duplicates (2)
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
\name{with.imputationList}
\alias{with.imputationList}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Evaluate an expression in multiple imputed datasets}
\description{
  Performs a computation of each of imputed datasets in \code{data}
  }
\usage{
\method{with}{imputationList}(data, expr, fun, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{data}{An \code{imputationList} object }
  \item{expr}{An expression }
  \item{fun}{A function taking a data frame argument}
  \item{...}{Other arguments, passed to \code{fun} }
}
\value{
 Either a list or an \code{imputationResultList} object
}
\details{
 If \code{expr} is supplied, evaluate it in each dataset in \code{data};
if \code{fun} is supplied, it is evaluated on each dataset. If all the
results inherit from \code{"imputationResult"} the return value is an
\code{imputationResultList} object, otherwise it is an ordinary list.
}
\seealso{\code{\link{imputationList}} }
\examples{
data(smi)
models<-with(smi, glm(drinkreg~wave*sex,family=binomial()))
tables<-with(smi, table(drkfre,sex))
with(smi, fun=summary)
}
\keyword{manip}% at least one, from doc/KEYWORDS