impute_SD {metagear} | R Documentation |
Imputes missing standard deviations in a dataset.
Description
Imputes (fills gaps) of missing standard deviations (SD) using simple imputation methods following Bracken (1992) and Rubin and Schenker's (1991) "hot deck" approach.
Usage
impute_SD(
aDataFrame,
columnSDnames,
columnXnames,
method = "Bracken1992",
range = 3,
M = 1
)
Arguments
aDataFrame |
A data frame containing columns with missing SD's (coded as
|
columnSDnames |
Label of the column(s) with missing SD. Can be a string or list of strings. |
columnXnames |
Label of the column(s) with means (X) for each SD. Can be a string or list of strings. Must be complete with no missing data. |
method |
The method used to impute the missing SD's. The default is
|
range |
A positive number on the range of neighbours to sample from for
imputing SD's. Used in combination with |
M |
The number of imputed datasets to return. Currently only works
for |
Value
An imputed (complete) dataset.
References
Bracken, M.B. 1992. Statistical methods for analysis of effects of treatment in overviews of randomized trials. Effective care of the newborn infant (eds J.C. Sinclair and M.B. Bracken), pp. 13-20. Oxford University Press, Oxford.
Rubin, D.B. and Schenker, N. 1991. Multiple imputation in health-care databases: an overview and some applications. Statistics in Medicine 10: 585-598.