Hi all I am really having trouble trying to export data from my simulation.
I have created 8 data frames similar to this one:
z.s<-as.data.frame(matrix(0,20,28))
I am running a simulation and storing 28 values from lme, anova and summary
calls. I want to store the estimates from each simulation on a row and
there are 20 draws in the simulation hence the dimensions of the matrix. My
simulation runs perfectly well and will return z.s. I want, however, to
export z.s as an spss file so I wrote this command:
export.data(DataSet="z.s",FileName="C:\\simulation\\six
month.sav",FileType="SPSS")
but I get this error:
ERROR:Cannot export DataSet = "z.s". The data must be committed to the
database first such as calling assign(...,immediate = T).
How on earth do I solve this? I would really appreciate it if anyone could
suggest a solution. Cheers and have a good weekend,
Paul H.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
|