[R] lme convergence

Ravi Varadhan rvaradhan at jhmi.edu
Wed Jun 28 18:52:19 CEST 2006


Use "try" to capture error messages without breaking the loop.
?try

--------------------------------------------------------------------------
Ravi Varadhan, Ph.D.
Assistant Professor,  The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins University
Ph: (410) 502-2619
Fax: (410) 614-9625
Email:  rvaradhan at jhmi.edu
Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html 
--------------------------------------------------------------------------

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-
> bounces at stat.math.ethz.ch] On Behalf Of Pryseley Assam
> Sent: Wednesday, June 28, 2006 12:18 PM
> To: R-Users
> Subject: [R] lme convergence
> 
> Dear R-Users,
> 
>   Is it possible to get the covariance matrix from an lme model that did
> not converge ?
> 
>   I am doing a simulation which entails fitting linear mixed models, using
> a "for loop".
>   Within each loop, i generate a new data set and analyze it using a mixed
> model.  The loop stops When the "lme function" does not converge for a
> simulated dataset. I want to inquire if there is a method to suppress the
> error message from the lme function, or better still, a way of going about
> this issue of the loop ending once the lme function does not converge.
> 
>   Thanks in advance,
>   Pryseley
> 
> 
> ---------------------------------
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-
> guide.html



More information about the R-help mailing list