s-news
[Top] [All Lists]

Exporting data from a simulation

To: s-news@lists.biostat.wustl.edu
Subject: Exporting data from a simulation
From: "paul hughes" <u7n96@hotmail.com>
Date: Fri, 27 Apr 2001 18:13:32 +0100
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.


<Prev in Thread] Current Thread [Next in Thread>
  • Exporting data from a simulation, paul hughes <=