Re: [R] question about simulation.

2003-08-21 Thread Uwe Ligges
Lily wrote: The problem has been solved. It is my mistake for not define the number of monte.carlo simulation when I am using mle.cv. Thank you all for your help! My last comment: It is your mistake not to specify required arguments, but there *is* a bug in wle. You should get an error message

Re: [R] question about simulation.

2003-08-20 Thread Uwe Ligges
Lily wrote: I am running a 1000 simulations, it works for 2 simulations. However, I get the following error message whenever I run it more than 3 times: The instruction at '0*11044080' referenced memory at o*3ff0. The memory could not be written. and, I can also get something like exception:

Re: [R] question about simulation.

2003-08-20 Thread Lily
Thanks for your response.I am working on R-1.7.1 under windows. Here is part of my code for simulation: x1-... y1-... beta-c(1,3,5,7,9)) mn-0 for ( i in 1:3) { e1-rnorm(40,mean=0,sd=1) y1-x1%*%beta+e1 result-mle.cv(y1~x1) result2-result[1, ] mn-rbind(mn, result2) } mn Thanks!! --- Uwe

Re: [R] question about simulation.

2003-08-20 Thread Spencer Graves
What version of R under what operating system with how much memory? What R functions are you using? Can you do a traceback()? Also, have you tried www.r-project.org - search - R site search? hope this helps. spencer graves Lily wrote: I am running a 1000 simulations, it works for 2

Re: [R] question about simulation.

2003-08-20 Thread Lily
The problem has been solved. It is my mistake for not define the number of monte.carlo simulation when I am using mle.cv. Thank you all for your help! --- Spencer Graves [EMAIL PROTECTED] wrote: What version of R under what operating system with how much memory? What R functions are you