Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transform.amelia

Transform imputed datasets from Amelia objects


Description

Updates the imputed datasets from an amelia output with the specified transformations.

Usage

## S3 method for class 'amelia'
transform(`_data`, ...)

Arguments

_data

an object of class "amelia"; typically output from the function amelia.

...

further arguments of the form tag = value.

Details

The ... arugments to transform.amelia are expressions of the form tag = value, where tag is the variable that is being updated or created and value is an expression that is a function of the variables in the imputed datasets. For instance, if you wanted to create an interaction of two imputed variables, you could have one argument be intervar = var1 * var2. This would either update the current variable intervar in the imputed data or append a new variable called intervar to the imputed datasets.

Value

An object of class amelia with its imputations and missMatrix values updated according to the transformations. In addition, each of the calls to transform.amelia are stored in

See Also


Amelia

A Program for Missing Data

v1.7.6
GPL (>= 2)
Authors
James Honaker <james@hona.kr>, Gary King <king@harvard.edu>, Matthew Blackwell <mblackwell@gov.harvard.edu>
Initial release
2019-11-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.