Re: [R] error with lme within a loop

2008-05-01 Thread Tomas Goicoa
Done it! It solves my problem. Thank you very much At 22:12 30/4/2008, Andrew Robinson wrote: Tomas, I suggest that you use try() Andrew On Wed, Apr 30, 2008 at 05:30:05PM +0200, Tomas Goicoa wrote: > Dear R users, > > I want to conduct a small simulation study and I have t

[R] error with lme within a loop

2008-04-30 Thread Tomas Goicoa
Dear R users, I want to conduct a small simulation study and I have to use the lme function in a loop to save the restricted log likelihood. However, for one simulated data set the lme function gives this error Error en lme.formula(yboot ~ X[, -1], data = data.fr, random = Z.block) : nlmin