getVarImps {miceRanger}R Documentation

Get Variable Imputations

Description

Returns imputations for the specified datasets and variable.

Usage

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.

Details

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

Value

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

Examples

data("sampleMiceDefs")
getVarImps(sampleMiceDefs,var="Petal.Width")

[Package miceRanger version 1.5.0 Index]