Hi,
I'm rather new to Amelia and have some troubles with it. Thus I would be very happy, if you could give me a hint. Here are my problems I'm dealing with:
I have two warning messages coming up when I try to run the imputation command on Amelia (using R) and I don't know how to handle them:
· "You have a small number of observations, relative to the number, of variables in the imputation model. Consider removing some variables, or reducing the order of time polynomials to reduce the number of parameters."
è What would be a good relation of observations to variables? Right now I have 292 observations and 121 variables in the data file. And I do not want to delete more variables, as they are pretty much the fundamental variables I want to do calculations with.
· "The resulting variance matrix was not invertible. Please check your data for highly collinear variables."
è Is Amelia not running properly in the case of collinear variables? Do I have to delete highly correlating variables or is there a way to work around? There are some variables that are very likely to correlate with each other, however I do not want to delete them from the sample as they will be important in further analysis.
Furthermore Amelia imputated 5 times, however data was only printed out in the last one of 5 excel sheets (using the command: write.amelia(obj=a.out, file.stem = "outdata", format = "csv")).
Do you have any idea why there is only data written to the last excel sheet? Or is this already the merged data sheet from all 5 imputations?
Cheers,
Stefanie
Follow us on Facebook: www.facebook.com/TUM.LSO<https://xmail.mwn.de/owa/redir.aspx?C=4f6285cd2ca7472e93498471917db3d0&URL=…>
__________________________________
Dipl.-Psych. Stefanie Ringelhan
Lehrstuhl für Strategie und Organisation
Prof. Dr. Isabell M. Welpe
Fakultät für Wirtschaftswissenschaften
Technische Universität München
Leopoldstrasse 139
D-80804 München (Germany)
Tel.: +49-(0)89-289-24824
Email: s.ringelhan@<mailto:m.mustermann@>tum.de
http://www.strategie.wi.tum.de<https://xmail.mwn.de/owa/redir.aspx?C=4f6285cd2ca7472e93498471917db3d0&URL=…>
Hi all,
Hot on the heels of the release of R 2.15, we are happy to announce the release of Amelia 1.6.1. This update incorporates a few new features and a few bugfixes, including one that prevented AmeliaView from opening. You can now use the R generic "transform" function to create new variables in each of the imputed datasets. To learn more, see section 4.8 of our manual:
http://cran.r-project.org/web/packages/Amelia/vignettes/amelia.pdf
To install this update, run the following lines of code at the R prompt:
install.packages("Amelia", repos = "http://cran.r-project.org")
And here is a list of the changes since the last update to CRAN:
== 1.6.1 (30 Mar 2012) ==
* Fixed a bug that prevented AmeliaView from opening.
== 1.6 (22 Feb 2012) ==
* Added a transform function to create transformed variables
in the imputed datasets.
* Added a mi.meld() function that can combine quantities of
interest using the Rubin rules.
* Added a subset arugment to overimpute.
* write.amelia() can now create a stacked/long imputed
datatset (also updated to AmeliaView)
* Fixed a bug in moPrep (Thanks to Jeff Arnold for the patch)
* missmap() has an arugment to not re-order the variables.
If you have any problems or questions, please feel free to send an email to list.
Cheers,
matt.
~~~~~~~~~~~
Matthew Blackwell
PhD Candidate
Institute for Quantitative Social Science
Department of Government
Harvard University
url: http://www.mattblackwell.org
Hello all,
I am trying to install AmeliaView on a new computer. I have verified that
R is installed and working correctly. I downloaded and ran
"amelia-setup.exe". However, when I try to open the program (either from
the shortcut or the Start Menu), all that happens is that a DOS window pops
up relatively quickly and disappears. AmeliaView does not launch. Any
prompt suggestions are appreciated, as I am on a very tight deadline.
Thank you for your consideration. Apologies for bringing such a basic
problem to the list, but I have spent the last 2 hours yelling at my
computer.
--
Bryan
Hi all,
I have installed R and Amelia in my mac but I am not able to make
AmeliaView function.
When I write AmeliaView() the following message appears:
Loading required package: tcltk
Loading Tcl/Tk interface ...
and it stops here. Can someone help me with this?
Thanks in advance!
Laura.
Hi Matt,
I am getting the same problem as John did. I ran the lines of code you
specified below and got an error with AmeliaView():
Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class
= "tclObj") :
[tcl] couldn't open "C:/Program
Files/R/R-2.14.2/library/Amelia/doc/gallery19.gif": no such file or
directory.
I checked the filepath and the folder "C:\Program
Files\R\R-2.14.2\library\Amelia\doc" exists but the file isn't there.
Any help is much appreciated.
Thank you,
Julie Rajaratnam
Matt Blackwell blackwel at fas.harvard.edu
Sun Mar 18 21:15:35 EDT 2012
Previous message: [amelia] installing Amelia II on Windows XP Pro
Next message: No subject
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
________________________________
Hi John,
Can you open R and run the following lines of code:
library(Amelia)
AmeliaView()
This should (a) display what version of Amelia you are using and (b) bring
up the AmeliaView window. If you could let us know what version of Amelia
you are using that would be helpful. Note that you *could* use this method
to open AmeliaView all the time while we try to sort out the problem.
Cheers,
matt.
~~~~~~~~~~~
Matthew Blackwell
PhD Candidate
Institute for Quantitative Social Science
Department of Government
Harvard University
url: http://www.mattblackwell.org
On Thursday, March 15, 2012 at 1:18 PM, Ely, John wrote:
>
> Dear Amelia:
>
>
> I am new to Amelia II and am having problems installing it on my PC,
which is running MS-Windows XP Professional.
>
>
> R was installed, and AmeliaView was installed. But when I click on the
AmeliaView icon on my desktop, all that happenes is a DOS-like window pops
open instantaneously & then immediately disappears.
>
>
>
>
>
> There must be something wrong with what I am doing, but I cannot see what
it is. Note that I do have the R-2.14.2 subdirectory, which includes
Rcmd.exe file, as mentioned in a previous post.
>
>
>
>
>
> If you could help troubleshoot this problem so I can begin to use AMeila
II, I would be most grateful.
>
>
>
>
>
> Many thanks,
>
>
>
>
>
> John
>
Dear Amelia:
I am new to Amelia II and am having problems installing it on my PC,
which is running MS-Windows XP Professional.
R was installed, and AmeliaView was installed. But when I click on the
AmeliaView icon on my desktop, all that happenes is a DOS-like window
pops open instantaneously & then immediately disappears.
There must be something wrong with what I am doing, but I cannot see
what it is. Note that I do have the R-2.14.2 subdirectory, which
includes Rcmd.exe file, as mentioned in a previous post.
If you could help troubleshoot this problem so I can begin to use AMeila
II, I would be most grateful.
Many thanks,
John
John Ely, Ph.D., M.P.H.
Scientist & Behaviorist
Insourcing Solutions
Charles River
Building 1303/P.O. Box 956
HAFB, NM 88330
Office 575-679-9804
Cell: 575-430-4709
Fax: 575-679-9841
E-mail: john.ely(a)crl.com <mailto:john.ely@crl.com>
www.criver.com <http://www.criver.com/>
Accelerating Drug Development. Exactly
Confidentiality Notice: The information contained in this email and any
attachments are confidential and may contain privileged and/or
proprietary information. This email is intended for the use of the
addressee only. If you are not the intended recipient, you are strictly
prohibited from copying, distributing or using this email or the
information contained in it. If you received this email in error,
please notify the sender immediately by email or telephone, and destroy
any copies, electronic, paper or otherwise.
<http://www.linkedin.com/company/8306?trk=tyah>
<http://www.facebook.com/charlesriverlabs>
<http://twitter.com/#!/Criver_Events>
<http://www.youtube.com/user/CharlesRiverLabs>
Hi Isaac,
Perhaps this is too simple an answer, but I think you might be missing the "library(Amelia)" call at the beginning of the script. When I add that to the top of the snippet, the code runs clean on my machine. Please let us know if that does not fix the problem.
Hope that helps!
Cheers,
matt.
~~~~~~~~~~~
Matthew Blackwell
PhD Candidate
Institute for Quantitative Social Science
Department of Government
Harvard University
url: http://www.mattblackwell.org
On Monday, February 27, 2012 at 9:44 AM, Matt Blackwell wrote:
> Hi Isaac,
>
> Perhaps this is too simple an answer, but I think you might be missing the "library(Amelia)" call at the beginning of the script. When I add that to the top of the snippet, the code runs clean on my machine. Please let us know if that does not fix the problem.
>
> Hope that helps!
>
> Cheers,
> matt.
>
>
> ~~~~~~~~~~~
> Matthew Blackwell
> PhD Candidate
> Institute for Quantitative Social Science
> Department of Government
> Harvard University
> url: http://www.mattblackwell.org
>
>
> On Tuesday, February 21, 2012 at 1:48 PM, Isaac Petersen wrote:
>
> > Hi,
> >
> > I want to impute a data set multiple times, but the data set is large so it takes a long time. As a result, I'm trying to run the multiple imputation with parallel processors in Windows, but am having trouble. Here is a quick example:
> >
> > ######
> > library(foreach)
> > library(doSNOW)
> > registerDoSNOW(makeCluster(4, type = "SOCK"))
> > getDoParWorkers()
> > getDoParName()
> > getDoParVersion()
> >
> > data(africa)
> >
> > iterations <- 4
> > foreach(i = 1:iterations) %dopar% {
> > amelia(x = africa, m=1, cs = "country", ts = "year", logs = "gdp_pc")
> > }
> > ######
> >
> > When I run the foreach loop, I receive the following warning
> > Error in { : task 1 failed - "could not find function "amelia""
> >
> > This is a bizarre error because I have loaded the amelia package and can impute data sets fine outside of the foreach loop. Moreover, if I change %dopar% to %do% to run the imputations in sequence rather than in parallel, the imputations run fine with no errors. How do I get Amelia to impute one data set (m=1) on each of 4 different processors. Finally, how do I combine the data sets after imputing them in parallel -- I assume using the ameliabind() function? How can I do this?
> >
> > Thanks for all your help. By the way, I'm new to Amelia, so any help would be greatly appreciated!
> > --
> > Amelia mailing list served by HUIT
> > [Un]Subscribe/View Archive: http://lists.gking.harvard.edu/?info=amelia
> > More info about Amelia: http://gking.harvard.edu/amelia
> > Amelia mailing list
> > Amelia(a)lists.gking.harvard.edu (mailto:Amelia@lists.gking.harvard.edu)
> > https://lists.gking.harvard.edu/mailman/listinfo/amelia
> >
> >
> >
>
>