[R] storing/retrieving simulation data

From: Jeff Miller <jeffmiller_at_adsam.com>
Date: Thu 15 Jun 2006 - 01:33:47 EST

Hi all,  

Would someone please provide efficient code for sending Monte Carlo simulation results and/or graphs run by run to an output file. This is followed by pulling the file back in for subsequent analyses.  

This is probably topic-specific, so here is a basic example. Suppose I want to examine R2 in multiple regression given X1 and X2. I set the 2 betas and run 10,000 simulations of N=500. This is done separately for 3 different correlations between X1 and X2 and for 2 distributions. Each of the 6 sets of results should be stored separately. I then want to pull in the 6 files to compare R2 between them.  

What is the most efficient way to export and then import the results? I was using SAS but got tired of the DATA/PROC step problems, and I hear that R is simpler to implement.  

Thanks in advance,

Jeff Miller      

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 15 01:42:13 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 15 Jun 2006 - 02:11:55 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.