getMeanImp | R Documentation |
This function takes a multiply imputed dataset ('mids' object), groups imputed values by the independent variable and calculates the mean across all 'm' imputed datasets for univariate time series data.
getMeanImp(mids, data, xVarName, yVarName)
mids |
A 'mids' objects generated by 'mice' |
data |
Original univariate time series with missing values |
xVarName |
A character string with the name of the predictor variable in the original dataset |
yVarName |
A character string with the name of the response variable in 'mids' object |
A data frame with a column for mean response variables grouped by the corresponding predictor variable value for which they were imputed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.