anova RDA by margin giving only model term with sum of variance and not each term

115 Views Asked by At

I am trying to run an anova by margin with my dataset, but instead of getting the varicance for each term I get only model with degrees of freedom 24 as the number of my response variable and variance changed to percentage is 100 and no residuals. like this:

    term Variance Pr(>F) var_exp
1    Model 22278.55     NA     100
2    Residual     0.00     NA       0

I give here a reproducible example where you get the anova by margin:

    data(varespec)
data(varechem)
vare.cca <- cca(varespec ~ Al + P + K, varechem)
## overall test
anova(vare.cca, by="margin")

How could I get the right output? Thanks a lot!

0

There are 0 best solutions below