getMeanImp: This function takes a multiply imputed dataset ('mids'...

View source: R/getMeanImp.R

getMeanImpR 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.

Description

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.

Usage

getMeanImp(mids, data, xVarName, yVarName)

Arguments

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

Value

A data frame with a column for mean response variables grouped by the corresponding predictor variable value for which they were imputed


earlycapistran/consLettersUtils documentation built on Nov. 22, 2022, 1:22 a.m.