Re: [R] How to automatically restart nlme in a user-defined function

2010-07-10 Thread David Winsemius
On Jul 10, 2010, at 11:39 PM, Jun Shen wrote: Hi, everyone, I wrote a function, which includes an nlme estimation. The problem is sometimes nlme may not converge due to too many random effects. Say a, b are two parameters. if I specify random effects by: random = a+b~1, nlme fails to conver

[R] How to automatically restart nlme in a user-defined function

2010-07-10 Thread Jun Shen
Hi, everyone, I wrote a function, which includes an nlme estimation. The problem is sometimes nlme may not converge due to too many random effects. Say a, b are two parameters. if I specify random effects by: random = a+b~1, nlme fails to converge. Then I have to constrain the random effects i