Re: [Rd] How to evaluate an lm() object for generating warning statement in a function

2007-01-23 Thread Roger D. Peng
There are two options, you can check to see if 'object.lm' inherits from "lm" using 'inherits()' or make comp.var.estimates a generic and then make a method for "lm" objects. -roger Michael Rennie wrote: > Hi, there > > I tried this post on R-help but did not generate any replies, so I thought

[Rd] How to evaluate an lm() object for generating warning statement in a function

2007-01-22 Thread Michael Rennie
Hi, there I tried this post on R-help but did not generate any replies, so I thought I might try the waters here since it's a more programming-based group. I have written a function that will allow me to calculate the variance components for a model II (random effects) single factor ANOVA (perh