Displaying 1 result from an estimated 1 matches for "mulakken".
2005 Jun 15
1
anova.lme error
...n R on Windows as well as 
when I run it on Linux.
When I call anova to do a LR test from inside a function, I get an error. 
The same call works outside of a function. It appears to not find the right 
environment when called from inside a function. I have provided the code 
below.
Thanks,
Nisha Mulakken
############################
myFunction <- function(myDataFrame) {
  # Less restricted
  fit1 <- gls(y ~ dose,
              weights=varIdent(form=~1|dose),
              data=myDataFrame)
  # more restricted
  fit2 <- gls(y ~ dose,
              data=myDataFrame)
  anova.results <...