[R] Help : glm p-values for a factor predictor

Michael Friendly friendly at yorku.ca
Thu Jun 29 15:04:20 CEST 2017


On 6/29/17 11:13 AM, Benoît PELE wrote:
> My question is about the factor predictors with several levels. R provides
> only the pvalues for each level whereas i need an overall pvalue for
> testing the predictor.

What you ask is provided by anova() -- type I tests, and car::Anova() -- 
Type II & III tests.

Factors in stepwise methods must be handled specially, to allow all 
levels to be included/excluded together.  I don't know of R software 
that does this.

HTH

-Michael



More information about the R-help mailing list