File: MIextract.Rd

package info (click to toggle)
r-cran-mitools 2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 500 kB
  • sloc: makefile: 2
file content (36 lines) | stat: -rwxr-xr-x 1,035 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
36
\name{MIextract}
\alias{MIextract}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Extract a parameter from a list of results }
\description{
 Used to extract parameter estimates and standard errors from
lists produced by \code{\link{with.imputationList}}.
}
\usage{
MIextract(results, expr, fun)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{results}{A list of objects}
  \item{expr}{an expression}
  \item{fun}{a function of one argument}
}
\value{
  A list
}
\details{
  If \code{expr} is supplied, it is evaluated in each element of
  \code{results}. Otherwise each element of \code{results} is passed as
  an argument to \code{fun}.
  }
\seealso{\code{\link{with.imputationList}}, \code{\link{MIcombine}}}
\examples{
data(smi)
models<-with(smi, glm(drinkreg~wave*sex,family=binomial()))

betas<-MIextract(models,fun=coef)
vars<-MIextract(models, fun=vcov)
summary(MIcombine(betas,vars))
}
\keyword{manip}% at least one, from doc/KEYWORDS