Dear Amelia List Members,
sorry I have forgotten to mention that I mean the option to save and load
Amelia files with AmeliaView.
Have a nice day,
Tim Müllenborn
-
Amelia mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive: http://lists.gking.harvard.edu/?info=amelia
Dear Amelia List Members,
Im facing some problems with the save and load session option in amelia II.
Saving the session is not the problem, but when I try to load the session
again I get the error message Not an Amelia session file. Try again.
The data file is in the same folder as the amelia-file. This was the only
hint I found in the documentation.
When I open the saved session with a text editor, I get the following
R-Code:
------- begin past ---------
`amelia.list` <-
structure(list(amelia.args = structure(list(outname = "pref1s1s210",
m = 5, empri = 0.5, ts = 0, cs = 0, am.filename = "D:/0.1. Hausarbeit
Datenquellen/Daten/Daten IversenSoscise/pref1s1s210.dta",
file.type = 2, noms = as.integer(c(2, 4)), sqrts = as.integer(c(5,
8)), polytime = 0, intercs = 0, output.select = 4, varmin =
structure(c(NA,
NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), .Dim = as.integer(c(28,
1))), varmax = structure(c(NA, NA, NA, NA, NA, NA, NA, NA,
NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,
NA, NA, NA, NA, NA), .Dim = as.integer(c(28, 1)))), .Names =
c("outname",
"m", "empri", "ts", "cs", "am.filename", "file.type", "noms",
"sqrts", "polytime", "intercs", "output.select", "varmin", "varmax"
))), .Names = "amelia.args")
----- end past ----------
Im using amelia II with R 2.4.0
Can somebody help me out with this?
Kind regards,
Tim Müllenborn
-
Amelia mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive: http://lists.gking.harvard.edu/?info=amelia
I loaded a dataset with 10 variables on to Amelia II. The intent was to
impute missing income observations. The data includes also a cross-section
variable (of countries). I followed the input instructions, set the right
options for all the variables and did not insert any priors. When I try to
run the data I get the message "Error in mu.priors - (ones %*% meanx) :
non-conformable arrays". Any suggestions for what might be done? I saw some
thread in your support for Amelia that mentioned this problem, but couldn't
quite figure out how to resolve the issue.
Many thanks - -
Dear Amelia-listers,
I have the following, probably atypical, missing data problem. My
variable of interest is "hourly earnings," which I calculate by dividing
"annual earnings" by "annual hours worked." The data set I am using (the
March supplement of the Current Population Survey) has the first
variable over 1960-2005. It also has the variables "total weeks worked"
and "usual hours of work per week" in each year over 1960-2005, so
"annual hours worked" can be obtained by multiplying these two
variables. The problem is that while from 1977 on these variables are
measured in integers (i.e, as the exact number of weeks and hours
worked, in integers), over 1960-1976 they are measured in interval
scales. Hence, for 1960-1976 the data may be considered as "partially
missing." I am thinking of using Amelia II to do multiple imputation of
these partially missing values, using the data for 1977-1978 as the
basis for the imputation. These are my questions:
(a) Prima facie, is this a sensible idea?
If the answer to (a) is yes:
(b) Would it be better to impute each of the two variables ("total weeks
worked" and "usual hours of work") separately, and then multiply them to
obtain "total weeks worked," or to directly impute the latter variable?
(My intuition is that the first method should be preferred, but I do not
have a clear reason to give as to why this would be the case.)
(c) Should I treat the observations in each interval of the variable I
am imputing as a separate imputation problem, in which the boundaries of
the interval provide the boundaries for the imputed values? (This would
assure that each person gets imputed a value that is fully consistent
with his or her value as measured by the interval scale, but it would
require me to do as many imputations as intervals; moreover, for some
intervals there may be insufficient observations in 1977-78.) Or should
I impute all values at once, and include the variable measured in an
interval scale "on the right"? (The problem of this is that the imputed
values may be inconsistent with the values measured in the interval scale).
I would appreciate any help a lot.
All best,
Pablo Mitnik
--
Pablo A. Mitnik
University of Wisconsin-Madison (http://www.wisc.edu/ )
Department of Sociology ( http://www.ssc.wisc.edu/soc/)
Center on Wisconsin Strategy (http://www.cows.org/ )
1180 Observatory Drive
Room 7114A
Madison, WI 53706
TEL (608) 2621839
E-mail: pmitnik(a)ssc.wisc.edu
-
Amelia mailing list served by Harvard-MIT Data Center
[Un]Subscribe/View Archive: http://lists.gking.harvard.edu/?info=amelia
I've been trying to run Amelia II in the GUI, but I continue to receive the
following error message:
There was an unexpected error in the execution of Amelia.
Double check all inputs for errors and take note of the error message:
Error in if (any(sapply(x, var, na.rm = T) == 0)) { :
missing value where TRUE/FALSE needed
What does this mean, and how do I correct this?
Thanks,
Josh Loud
Hello,
I recently instally AmeliaView (as per the instructions on the home page) on two windows machines (win2k and winxp home) and am unable to open files into the program. I've tried all of the accepted formats for the app but have not been successful. I do not get an error, it just does nothing when I hit the load button. The command prompt displays the following when first starting Amelia:
"C:\Program Files\AmeliaView>ECHO MsgBox "Amelia cannot find R. Please make sure
R is installed" & vbNewLine & "and that you correctly specified its location in
amelia.ini." 1>error.vbs
C:\Program Files\AmeliaView>ECHO CreateObject("Wscript.Shell").Run """" & WScrip
t.Arguments(0) & """", 0, False 1>invisible.vbs
C:\Program Files\AmeliaView>FOR /F "tokens=1* delims==" %a IN ('findstr "RPath="
amelia.ini') DO (SET Value=%b )
C:\Program Files\AmeliaView>(SET Value=C:\Program Files\R\R-2.4.0 )
C:\Program Files\AmeliaView>IF NOT EXIST "C:\Program Files\R\R-2.4.0\bin\Rcmd.ex
e" error.vbs
C:\Program Files\AmeliaView>ECHO @"C:\Program Files\R\R-2.4.0\\bin\\Rcmd.exe" BA
TCH run.r 1>frontend.bat
C:\Program Files\AmeliaView>ECHO library(Amelia) 1>run.r
C:\Program Files\AmeliaView>ECHO AmeliaView() 1>>run.r
C:\Program Files\AmeliaView>wscript.exe "invisible.vbs" "frontend.bat"
"
so it appears that, at least initially it can't find R but then it looks like it has been able to find it. On the win2k machine it loads R-Commander when Amelia starts, on the WinXP machine it doesn't. Is there a debug mode to search for errors? Also, is there a limitation in terms of what version of a given APP I save the file as? for instance, does saving an SPSS 14 datafile prevent it from being compatible? or STATA 9?
Any help is appreciated. R is version 2.4.0 and AmeliaVue is the version I downloaded from the website today.
Andrew Bedrous
Department of Sociology
University of Nebraska-Lincoln
---------------------------------
Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates.
Dear Professor King,
I double checked this error and in part know why it's occuring. I ran the most current version the Amelia II, AmeliaView from my home computer on R version 2.3.1 and it ran fine, then I installed R version 2.4.0 Patched and installed Amelia II. When I tryed to use AmeliaView with R version 2.4.0 Patched the error message:
Error in load.data(, ) : unused argument(s) ()
(note: this occurs with either the patched or nonpatched version of R 2.4)
Again occured and the data refused to load. Therefore something appears to have changed between these two versions of R which prevents the use of the Amelia II GUI. I hope pointing this out proves to be more help, than headache. Thank you for your time and good will.
sb
On Wed, 01 Nov 2006 16:21:55 -0500 Gary King wrote:
can you make sure you have the new version installed and then try again?
if you find the error still, can you email it to me and the others at the
listserv? then we can track it down. many thanks & best of luck at PSU!
Gary
---
Gary King
David Florence Professor of Government,
Director, Institute for Quantitative Social Science
Harvard University, 1737 Cambridge St, Cambridge, MA 02138
http://gking.harvard.edu/, https://webmail.psu.edu/webmail/main.cgi#
Direct 617-495-2027, Assistant 495-9271, eFax 812-8581
On Wed, 1 Nov 2006, SHAUN BEVAN wrote:
> Dear Professor King,
>
> I'm a graduate student at Penn State University studying under Frank
> Baumgartner and I am currently enrolled in a methods course taught by
> Burt Monroe who turned our class onto Amelia II. I recently tryed to
> run the GUI version of Amelia II using R version 2.4.0 Patched and
> recieved the following error whenever I tryed to load data, no matter
> the format.
>
> Error in load.data(, ) : unused argument(s) ()
>
> I've learned and applied the code for amelia() in the r command prompt
> itself since then, but I thought you should know that this error does
> occur. If you have any further questions about the exact process I
> followed to recieve this error don't hesitate to contact me.
>
> sb
>
> Shaun Bevan
> Graduate Student
> Penn State University
> Department of Political Science
Shaun Bevan
Graduate Student
Penn State Department of Political Science
"The flow is more important, not power. You have to be like water. You get it?" - Spike