[R] Amelia imputation - column grouping

Jose Iparraguirre Jose.Iparraguirre at ageuk.org.uk
Tue Oct 30 18:10:19 CET 2012


Hi Elisa,

Simply create a data frame with the columns you want to use and then run the amelia() function on that data frame.
Say, you've creasted the data frame MyDF with the 3 columns you want amelia to perform the imputation. Then type
> a.out <- amelia(MyDFl, m =M) 
(where M is the number of imputations).

Jose

________________________________________
From: r-help-bounces at r-project.org [r-help-bounces at r-project.org] On Behalf Of Elisa D'Arcangelo [darcangelo.elisa at googlemail.com]
Sent: 30 October 2012 13:35
To: r-help at r-project.org
Subject: [R] Amelia imputation - column grouping

Hi everybody,

I am quite new to data imputation, but I would like to use the R package '
Amelia II: A Program for Missing Data '. However, its unclear to me  how
the input for amelia should look like:

I have a data frame consisting of numerous coulmns, which represent
different experimental conditions, whereby each column has 3 replicates. I
want amelia to perform an imputation across the replicates in each condtion
(i.e. over 3 colums), not however across the whole data frame. Hence my
question, does amelia need some sort of 'grouping', i.e. how do I specify
how many columns of my data frame should be used for imputation?

Any help is greatly appreciated. Thank you!

Regards,

Elisa

        [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Age UK and YouthNet are official charities for the Virgin London Marathon 2013

We need you to Run for it. Join the team and help raise vital funds to bring generations together to combat loneliness and isolation.

Go to http://www.runforit.org.uk for more information or contact Helen Parson at helen.parsons at ageuk.org.uk or on 020 303 31369.

Age UK and YouthNet. A lifeline, online.

www.runforit.org.uk



Age UK Improving later life

www.ageuk.org.uk



-------------------------------
Age UK is a registered charity and company limited by guarantee, (registered charity number 1128267, registered company number 6825798). 
Registered office: Tavis House, 1-6 Tavistock Square, London WC1H 9NA.

For the purposes of promoting Age UK Insurance, Age UK is an Appointed Representative of Age UK Enterprises Limited, Age UK is an Introducer 
Appointed Representative of JLT Benefit Solutions Limited and Simplyhealth Access for the purposes of introducing potential annuity and health 
cash plans customers respectively.  Age UK Enterprises Limited, JLT Benefit Solutions Limited and Simplyhealth Access are all authorised and 
regulated by the Financial Services Authority. 
------------------------------

This email and any files transmitted with it are confide...{{dropped:28}}




More information about the R-help mailing list