[R] Simulation study in R for categorical repeated measures data

2013-11-18 Thread Buddhini Gawarammana
Hi everyone, I am interested in doing a study to compare three analyzing methods namely, ANOVA, GEE and multilevel approach for *categorical repeated measures data using a simulation study in R*. I am not an expert in R but I know some preliminaries in R. Therefore I am desperately looking

[R] Simulation study in R

2008-04-29 Thread Arun Kumar Saha
Here I am in a simulation study where I want to find different values of x and y such that f(x,y)=c (some known constant) w.r.t. x, y 0, y=x and x=c1 (another known constant). Can anyone please tell me how to do it efficiently in R. One way I thought that I will draw different random numbers from

Re: [R] Simulation study in R

2008-04-29 Thread Moshe Olshansky
Are the pairs (x,y) belong to some lattice or can change continuously? Does f assume some discrete values (or is constant on sets of positive measure)? If not then it will be hard to randomly select x and y which satisfy the exact equality (this still can happen since there are finitely many

Re: [R] Simulation study in R

2008-04-29 Thread Arun Kumar Saha
x, y are cont. variable, and f also have to be cont.. And your second suggestion is correct of course, it actually should be |f(x,y) - c| epsilon Thanks On Tue, Apr 29, 2008 at 12:34 PM, Moshe Olshansky [EMAIL PROTECTED] wrote: Are the pairs (x,y) belong to some lattice or can change

Re: [R] Simulation study in R

2008-04-29 Thread Robert A LaBudde
At 02:40 AM 4/29/2008, Arun Kumar Saha wrote: Here I am in a simulation study where I want to find different values of x and y such that f(x,y)=c (some known constant) w.r.t. x, y 0, y=x and x=c1 (another known constant). Can anyone please tell me how to do it efficiently in R. One way I thought

Re: [R] simulation study using R

2008-03-05 Thread Davood Tofighi
Thanks to All, The comments were very helpful; however, the the simulation is running very slow. I reduced the number of loops (conditions) so I have 36 loops, and the data-generation occurs 1000 times within each loop. At the end of each 1000 reps, I saved the summary (e.g., mean) of the reps to

Re: [R] simulation study using R

2008-03-04 Thread jim holtman
One of the things you might take a look at is the 'filehash' package. It is an easy way of storing/retrieving R objects. I have an application where my objects are matrices of about the same size and I can quickly store the data and then come back later with a different script to do further

[R] simulation study using R

2008-03-03 Thread Davood Tofighi
Dear All, I am running a Monte Carlo simulation study and have some questions on how to manage data storage efficiently at the end of each 1000 replication loop. I have three conditions coded using the FOR {} loops and a FOR loop that generates data for each condition, performs analysis, and

Re: [R] simulation study using R [SEC=UNCLASSIFIED]

2008-03-03 Thread Augusto.Sanabria
-project.org Subject: [R] simulation study using R Dear All, I am running a Monte Carlo simulation study and have some questions on how to manage data storage efficiently at the end of each 1000 replication loop. I have three conditions coded using the FOR {} loops and a FOR loop that generates

Re: [R] simulation study using R

2008-03-03 Thread jim holtman
What is the format of the data you are storing (single value, multivalued vector, matrix, dataframe, ...)? This will help formulate a solution. What do you plan to do with the data? Are you going to do further analysis, write it to flat files, store it in a data base, etc.? How big are the

Re: [R] simulation study using R

2008-03-03 Thread Davood Tofighi
Thanks for your reply. For each condition, I will have a matrix or data frames of 1000 rows and 4 columns. I also have a total of 64 conditions for now. So, in total, I will have 64 matrices or data frames of 1000 rows and 4 columns. The format of data I would like to store would be data frames or