[R] avoiding warning messages on the screen with 'lme'

Liaw, Andy andy_liaw at merck.com
Fri Jan 27 23:20:45 CET 2006


See the argument `warn' in ?options.

Andy

From: Marco Geraci
> 
> Dear all,
> does anyone know a command to shut 'lme' (nlme) up? :)
> 
> I have a loop
> 
> for(i in 1:M){
> lme(..)
> }
> 
> and for each "i" i get the warning message
> >Fewer observations than random effects in all level 1
> groups >in: ...
> 
> I know I'm using "fewer observations...", I just don't
> want to see the message printed on the screen during
> the loop.
> 
> Thanks,
> Marco Geraci
> 
> 
> > sessionInfo()
> R version 2.2.1, 2005-12-20, i386-pc-mingw32 
> 
> attached base packages:
> [1] "methods"   "stats"     "graphics"  "grDevices"
> "utils"     "datasets" 
> [7] "base"     
> 
> other attached packages:
>     nlme 
> "3.1-66" 
> >
> 
> ______________________________________________
> 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