Hi there,Â
I actually don't think you actually need to use ameliabind() here. The amelia output
already has all of the datasets together. It might help us to know what is it that you
want to accomplish with ameliabind() in this case.
Cheers,
Matt
Thanks, Matt.
I'm just trying to do a plain old linear regression.
I tried going the ameliabind() route because when
trying to use lm() with the 5 sets of imputed data,
I get the following error:
Error in as.data.frame.default(data) :
cannot coerce class ""amelia"" to a data.frame
Would you please let me know the proper way to regress
these 5 datasets?
Thanks!
On Thu, Nov 12, 2015 at 10:11 PM, W. D.
<<mailto:WD@a7h.com>WD@a7h.com> wrote:
At 06:47 11/11/2015, Matt Blackwell wrote:
Hi there,Ã
The 5 imputed datasets are actually contained in the DataImputed object and you can access
each imputed dataset like so:
DataImputed$imputations[[1]]
DataImputed$imputations[[2]]
And so on. ameliabind() will merge the output of two amelia() calls into 1 so that if each
had 5 imputed datasets, then the binded object will have 10.Ã
Thanks for the clue, Matt.
However when I run:
DataImputedAll <- ameliabind(DataImputed$imputations[[1]],
DataImputed$imputations[[2]], DataImputed$imputations[[3]], DataImputed$imputations[[4]],
DataImputed$imputations[[5]])
It rudely spits out:
"All arguments must be amelia output."
When searching for that particular error, there isn't anything
useful.
What do you suggest?
Thanks for your assistance!
Hope that helps!
Cheers,
Matt
~~~~~~~~~~~
Matthew Blackwell
Assistant Professor of Government
Harvard University
url:
<<http://www.mattblackwell.org>http://www.mattblackwell.org>http://www.mattblackwell.orgÃ
On Wed, Nov 11, 2015 at 1:14 AM, W. D.
<<mailto:WD@a7h.com><mailto:WD@a7h.com>WD@a7h.com> wrote:
If 5 sets of data are generated using a command like
this:
DataImputed <- amelia(x=GroupData,incheck=TRUE)
What would be the names of the 5 sets of data in order
to use ameliabind?
DataImputedAll <- ameliabind(set1?, set2?, set3?, set4?, set5?)
There seem to be a dearth of examples online.
Thanks for your help.
--
Amelia mailing list served by HUIT
[Un]Subscribe/View Archive:
<<http://lists.gking.harvard.edu/?info=amelia>http://lists.gking.harvard.edu/?info=amelia>http://lists.gking.harvard.edu/?info=amelia
More info about Amelia:
<<http://gking.harvard.edu/amelia>http://gking.harvard.edu/amelia>http://gking.harvard.edu/amelia
Amelia mailing list
<mailto:Amelia@lists.gking.harvard.edu><mailto:Amelia@lists.gking.harvard.edu>Amelia@lists.gking.harvard.edu
To unsubscribe from this list or get other information:
<<https://lists.gking.harvard.edu/mailman/listinfo/amelia>https://lists.gking.harvard.edu/mailman/listinfo/amelia>https://lists.gking.harvard.edu/mailman/listinfo/amelia