How to interpret p-values in my case? (linear model in R)
I am working with a data-set of benefits of doing activity. The only info I have is the time spent exercising and the sex of the person.
I run a linear regression in R ( lm(benefit ~ time * sex ) )
This gives me small p- values for the intercept, coefficient of time and the coefficient of time given if female. The p-value for coefficient of sex is high.
However in I run a linear regression only on the females I get a low p-value for the intercept (which corresponds to the sum of the intercept and sex coefficient if the previous model) and a high p-value for the coefficient of time.
The p-values seem to contradict each other. How do I interpret the results?
Posted Feb 25, 2019, 4:17 PM UTC
The high p-value of "sex" variable indicates the constant term does not differ for men and women, but the constant term is obviously significant (intercept has a small p-value).
If you drop men from the sample, you retrieve the significant constant and the insignificant coefficient of time for women. But this is not necessarily a contradiction: for example, if the coefficients of time and its interaction with "sex" have opposite signs, they can indicate (i) significant effect for men, (ii) significant difference between men and women, and (iii) no clear (insignificant) effect for women.