[R] overall comparison of an ordered categorical in a multiple regression
Gavin Simpson
gavin.simpson at ucl.ac.uk
Thu Feb 21 15:52:28 CET 2008
On Thu, 2008-02-21 at 14:25 +0000, Angelo Passalacqua wrote:
> I entered the following:
>
> formula<-nst~age+soc+inc+reg+imp
>
> pnstlm<-lm(formula,nst)
>
> summary(pnstlm)
>
> imp and soc are ordered categorical variables but the summary does not give
> an output of the overall p-values, just individual comparisons. I can't
> find help for this in the manual. Is there a command or option change in
> the summary to find out the overall p-value?
I think you want:
anova(pnstlm)
to get single measures for imp and soc
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list