mi.info.update: function to update mi.info object to use for multiple...

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function is internal function to update the mi.info object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Arguments

object

mi.info object that is result of mi.info function.

target

which part of mi.info object to modify.

list

list that has same length as the number of variables in the mi.info object. Element which are left NULL will not be updated .

...

currently no function.

Value

info

updated mi.info object.

Author(s)

Masanao Yajima yajima@stat.columbia.edu, Yu-Sung Su suyusung@tsinghua.edu.cn, M.Grazia Pittau grazia@stat.columbia.edu, Andrew Gelman gelman@stat.columbia.edu

References

Yu-Sung Su, Andrew Gelman, Jennifer Hill, Masanao Yajima. (2011). “Multiple Imputation with Diagnostics (mi) in R: Opening Windows into the Black Box”. Journal of Statistical Software 45(2).

Andrew Gelman and Jennifer Hill. (2007). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press.

See Also

mi.completed

Examples

1
2
3
4
5
6
7
8
data(CHAIN)
CHAIN.info <- mi.info(CHAIN)

# You can update the mi.info object in the below two ways
CHAIN.info <- update(CHAIN.info, "type", 
  list(age.W1="continuous", b05.W1="unordered-categorical"))
CHAIN.info <- mi.info.update.type(CHAIN.info, 
  list(age.W1="continuous", b05.W1="unordered-categorical"))

mi documentation built on May 2, 2019, 4:43 p.m.

Related to mi.info.update in mi...