Displaying 2 results from an estimated 2 matches for "anovalm".
2006 Mar 10
4
How to get the intercept from lm?
...er SuSE 10
I want to use lm() to get the slope and intercept for several daatasets
and store them in a database. So far so good - but how do I extract the
slope and the intercept from the result from lm()?
my code looks like this:
lmNNDens <- lm(log(DensNN$MeanNN) ~ log(DensNN$MeanDensity))
anovaLM <- anova(lmNNDens)
Results$slope[No] <- ???lmNNDens???
Results$intercept[No] <- ???lmNNDens???
any help welcome,
Rainer
--
--
Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT)
Department of Conservation Ecology
University of Stellenbosch
Matieland 7602
South Afr...
2004 Nov 25
1
Error in anova(): objects must inherit from classes
Hello:
Let me rephrase my question to attract interest in the problem I'm having. When I appply anova() to two equations
estimated using glmmPQL, I get a complaint,
> anova(fm1, fm2)
Error in anova.lme(fm1, fm2) : Objects must inherit from classes "gls",
"gnls" "lm","lmList", "lme","nlme","nlsList", or "nls"