Re: [R] latex and anova.lme problem

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Sun 08 Oct 2006 - 16:27:37 GMT

Michael Kubovy wrote:
> Dear R-helpers,
>
> When I try
> > anova(txtE2.lme, txtE2.lme1)
> Model df AIC BIC logLik Test L.Ratio p-value
> txtE2.lme 1 10 8590 8638 -4285
> txtE2.lme1 2 7 8591 8624 -4288 1 vs 2 6.79 0.0789
> > latex(anova(txtE2.lme, txtE2.lme1))
> Error: object "n.group" not found

Michael,

As far as I know, no one has implemented a latex method for anova.lme objects. You are trying to use a default latex method for a complex object.

n.group is an argument to latex.default in the Hmisc package

Frank

>
> I don't even see n.group as one of the arguments of latex()
>
> I checked to see
> > class(anova(txtE2.lme, txtE2.lme1))
> [1] "anova.lme" "data.frame"
>
> A bit more information (which I don't know is relevant):
> > methods(anova.lme)
> no methods were found
> Warning message:
> function 'anova.lme' appears not to be generic in: methods(anova.lme)
> > methods(latex)
> [1] latex.bystats latex.bystats2
> latex.default
> [4] latex.describe latex.describe.single
> latex.function
> [7] latex.list latex.summary.formula.cross
> latex.summary.formula.response
> [10] latex.summary.formula.reverse
>
>
> *********************sessionInfo()************************
> R version 2.4.0 (2006-10-03)
> powerpc-apple-darwin8.7.0
>
> locale:
> C
>
> attached base packages:
> [1] "datasets" "methods" "stats" "graphics" "grDevices"
> "utils" "base"
>
> other attached packages:
> Hmisc chron xtable geepack glmmML
> nlme lme4 Matrix lattice
> "3.1-1" "2.3-8" "1.3-2" "1.0-10" "0.65-3" "3.1-77"
> "0.9975-1" "0.9975-2" "0.14-9"
> MASS JGR iplots JavaGD rJava
> "7.2-29" "1.4-11" "1.0-4" "0.3-5" "0.4-10"
>
> _____________________________
> Professor Michael Kubovy
> University of Virginia
> Department of Psychology
> USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
> Parcels: Room 102 Gilmer Hall
> McCormick Road Charlottesville, VA 22903
> Office: B011 +1-434-982-4729
> Lab: B019 +1-434-982-4751
> Fax: +1-434-982-4766
> WWW: http://www.people.virginia.edu/~mk9y/
>
> ______________________________________________
> R-help@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
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Oct 09 02:30:22 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 08 Oct 2006 - 18:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.