with.imputationList | R Documentation |
Performs a computation of each of imputed datasets in data
## S3 method for class 'imputationList'
with(data, expr, fun, ...)
data |
An |
expr |
An expression |
fun |
A function taking a data frame argument |
... |
Other arguments, passed to |
If expr
is supplied, evaluate it in each dataset in data
;
if fun
is supplied, it is evaluated on each dataset. If all the
results inherit from "imputationResult"
the return value is an
imputationResultList
object, otherwise it is an ordinary list.
Either a list or an imputationResultList
object
imputationList
data(smi)
models<-with(smi, glm(drinkreg~wave*sex,family=binomial()))
tables<-with(smi, table(drkfre,sex))
with(smi, fun=summary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.