getVarImps function

Get Variable Imputations

Get Variable Imputations

Returns imputations for the specified datasets and variable.

getVarImps(x, datasets, var)

Arguments

  • x: A miceDefs or impDefs object.
  • datasets: The datasets to return. Can be a number, of a numeric vector.
  • var: The variable to return the imputations for.

Returns

A matrix of imputations for a single variable. Each column represents a different dataset.

Details

These functions exist solely to get at the imputed data for a specific dataset and variable.

Examples

data("sampleMiceDefs") getVarImps(sampleMiceDefs,var="Petal.Width")
  • Maintainer: Sam Wilson
  • License: MIT + file LICENSE
  • Last published: 2021-09-06