Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Amelia object as data.frame


From   Laura Maria Schwirz <schwirzl@tcd.ie>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Amelia object as data.frame
Date   Tue, 26 Feb 2013 11:56:30 +0000

Apologies!

On 26 February 2013 11:50, Nick Cox <njcoxstata@gmail.com> wrote:
> R questions belong elsewhere, please.
>
> Nick
>
>
> On 26 Feb 2013, at 11:44, Laura Maria Schwirz <schwirzl@tcd.ie> wrote:
>
>> Hi Stata Users
>>
>> I have run multiple imputations using R's Amelia package and would
>> like to use the imputed dataset to analyse Mokken Scale Analysis.
>> But mokken requires the object to be a data frame. I tried
>> as.data.frame(x) and as.matrix(x) but it says that it cannot coerce
>> class amelia into a data frame or matrix.
>>
>> australia93=as.data.frame(australia93)
>> Error in as.data.frame.default(australia93) :
>>  cannot coerce class '"amelia"' into a data.frame
>>
>> coefH(australia93)
>> Error in check.data(X) : Data are not matrix or data.frame
>>
>> Any help would be much appreciated.
>>
>> Thanks,
>> Laura
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/statalist-faq/
>> *   http://www.ats.ucla.edu/stat/stata/
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
>



--
Laura Schwirz

PhD Candidate and IRCHSS Scholar
Department of Political Science
Trinity College Dublin
Dublin 2
Republic of Ireland
Email: schwirzl@tcd.ie
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index