[R] How to do the coding for simulation in R?

2005-05-31 Thread Fang Lily
Dear list, I am working on a project of simulating normal distributed data in R. Would you please show me some coding especially regarding how to do the circling? Thanks, Lily __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] help for performing regressions based on combination ofpredictors

2003-09-01 Thread Lily
Thank you for your help. I just tried "leaps". However, I still need to know the regression coefficients for each regression. Seems leaps doesn't provided the coefficients. Lily --- kjetil brinchmann halvorsen <[EMAIL PROTECTED]> wrote: > On 31 Aug 2003 at 18:06, Lily

Re: [R] help for performing regressions based on combination ofpredictors

2003-09-01 Thread Lily
On Sun, 31-Aug-2003 at 06:06PM -0700, Lily wrote: > > |> Dear All, > |> > |> I would like to perform linear regressions based > on Y > |> and all of the combinations of the five > predictors, > |> > i.e.,(y,x1,x2),(y,x1,x3),,(y,x1,x2,x4,x5),,(y,x1,

[R] help for performing regressions based on combination ofpredictors

2003-09-01 Thread Lily
Dear All, I would like to perform linear regressions based on Y and all of the combinations of the five predictors, i.e.,(y,x1,x2),(y,x1,x3),,(y,x1,x2,x4,x5),,(y,x1,x2,x3,x4,x5). Is there any quick way to do it instead of repeat performing regressions for 31 times? Or, is there any metho

[R] How to do leave-n-out cross validation in R?

2003-08-27 Thread Lily
Seems crossval from library(bootstrap) can only be used for leave-one-out and k-fold cross validation? Here is a dumb question, suppose n=80, how to do exactly leave-50-out cross validation? K-fold cross validation is not eligible for this case since n/ngroup is not an integer. Thanks! ___

Re: [R] question about simulation.

2003-08-20 Thread Lily
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
(mn, result2) } mn Thanks!! --- Uwe Ligges <[EMAIL PROTECTED]> wrote: > 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: > > > > "Th

[R] question about simulation.

2003-08-20 Thread Lily
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: access

[R] question for loop on matrix row level.

2003-08-19 Thread Lily
For the 1000 simulations, a matrix will be generated each time. And, I need to choose the first row of the generated matrix. The following loop doesn't work though: for (i in 1:1000) { aval[i]<- matrixname[1,] } Any solution? thanks! __ [EMAIL PROTEC