'linearHypothesis function in R and interaction terms
I'm running the model:
model <- lm(y~ index1*gender +education, data=data)
and trying to test the null that the effect of index1 on y is 0 when gender=1 and am wondering if the following is the correct way to think about setting up this linear combination:
linearHypothesis(model, c('index1 + index1*gender = 0'))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
