I am doing a hypothesis test to test to see if my model is significant and I want to extract the p-value.
So I know that you do summary(mymodel)$fstatistic[1])
to find the test statistic.
and you can do summary(mymodel)$coeff[2,4]
to find the p-value, but this only works for simple linear regression since the p values are the same for t and f test.
I want to get the p-value by itself without any libraries. Can it be done? I can't seem to find an answer for this..
Thanks in advance.