Skip to content
Prev 169568 / 398506 Next

Joint test

Dear Hein,

I'm not entirely sure that I understand what you want to do, but I think
that you want to test that the coefficient of milwinwar equals that of
civwinwar, and similarly and simultaneously for two other pairs of
coefficients. If so, you should be able to use the linear.hypothesis()
function in the car package:

linear.hypothesis(modelPG2, c("milwinwar = civwinwar", "millosewar =
civlosewar", "mildrawwar = civdrawwar"))

You should be able to get the same test from the wald.test() function that
you tried, but I believe that you would have to build the hypothesis matrix
manually.

I hope this helps,
 John

------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
On
http://www.R-project.org/posting-guide.html