Re: [R] how to avoid a for looping break after an error message

2009-07-25 Thread cls59
Victor Landeiro wrote: > > Hi all, > I wrote a piece of code that generates simulated variables. after variable > generation I use them in several analyzes. > However, when I use a for to repeat the procedure 1000 times I get an erro > message in one of the "for" steps, precisely at this time:

[R] how to avoid a for looping break after an error message

2009-07-25 Thread Victor Landeiro
Hi all, I wrote a piece of code that generates simulated variables. after variable generation I use them in several analyzes. However, when I use a for to repeat the procedure 1000 times I get an erro message in one of the "for" steps, precisely at this time: gls.temp<- gls(y2 ~ x2,correlation=corE