[R] CAPER pgls() anova not working with variable as factor
Ben Smit
smitbe at gmail.com
Sat Jan 4 16:38:39 CET 2014
Hi Bianca
I have exactly the same problem! I see you posted this almost a year ago
and didn't get any response.... Could you figure out what the problem was
in the end? I am running a PGLS model with categorical factors. In one
model the factor has two levels and the anova function works fine. In other
I have more than two levels and it gives me the same problem you described
below. The summary function works but the output breaks p-values down per
level, and you don't get a p-value for the factor as a whole..
Any suggestions?.
On Wednesday, February 6, 2013 12:09:31 PM UTC+2, Bianca A Santini wrote:
>
> Hi there,
>
> >
> > I am using the function pgls in the CAPER package, everything seems to
> run
> > fine except for one of my variables.
> > When using this variable as continuous the anova works without problem,
> > but if using the same variable as factor (in fact, this is what it is),
> the
> > program returns this answer:
> >
> > Error in terms.formula(formula, data = data) :
> > invalid model formula in ExtractVars
> >
> >
> > any ideas on what might be the problem?
> >
> > Cheers!
> >
> >
> >
> > --
> > BAS
> >
> >
> >
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-h... at r-project.org <javascript:> 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.
>
More information about the R-help
mailing list