Hello,
im working on a logistical regression, with an interaction term, using the (simplified) following command:
xi: svy: logistic mygoalvariable i.sex i.score i.sex*i.score, coeff
Here is a simplified model: Logit P= B0 + B1 sex + B2 score(1/0) + B3 score (2/0) + B4 sex*score(1/0) + B5 sex*score(2/0)
score is a categorical variable with 3 level: low level=0 (reference), mid level=1, high level=2.
sex is a dummy variable 0=Boy 1=girl.
I have a statistically significant effect of all my variables, including the interaction term.
This means that the score variable have a different effect among boys or girls.
I want to estimate the exact effect of score among girls. However, logistic provides coefficients (or odds ratio=OR) for both the score variable and the interaction term independently.
I calculated the overall OR myself using exp(B2 + B4) for the mid level vs low.
I also calculated the confidence interval (95%) using the variance-covariance matrix from the estat vce command: exp[ B2+B4 +/- 1.96 squareroot( variance B2 + var
But I dont know how to calculate a p-value for this OR.
I already know that this overall effect is not significant (OR including 1; which is the expected result: the score variable have an effect among boys but we can't show this effect among girls), but I'd like to know if it is possible to calculate a p-value from these elements.
Note that i use survey weighted data (indicated by the svy: ) and so i dont have a population in number of subjects (only proportions) , neither a log likelihood (this said, i dont really understand why the logistic command won display the log likelihood when the pweight option that gives the exact same results can do it, but it is another question)
This question is more about statistics than about Stata, I will be plenty satisfied with a formula if there is no easy command in Stata allowing this.
Thank you for any help you can bring to me.
im working on a logistical regression, with an interaction term, using the (simplified) following command:
xi: svy: logistic mygoalvariable i.sex i.score i.sex*i.score, coeff
Here is a simplified model: Logit P= B0 + B1 sex + B2 score(1/0) + B3 score (2/0) + B4 sex*score(1/0) + B5 sex*score(2/0)
score is a categorical variable with 3 level: low level=0 (reference), mid level=1, high level=2.
sex is a dummy variable 0=Boy 1=girl.
I have a statistically significant effect of all my variables, including the interaction term.
This means that the score variable have a different effect among boys or girls.
I want to estimate the exact effect of score among girls. However, logistic provides coefficients (or odds ratio=OR) for both the score variable and the interaction term independently.
I calculated the overall OR myself using exp(B2 + B4) for the mid level vs low.
I also calculated the confidence interval (95%) using the variance-covariance matrix from the estat vce command: exp[ B2+B4 +/- 1.96 squareroot( variance B2 + var
But I dont know how to calculate a p-value for this OR.
I already know that this overall effect is not significant (OR including 1; which is the expected result: the score variable have an effect among boys but we can't show this effect among girls), but I'd like to know if it is possible to calculate a p-value from these elements.
Note that i use survey weighted data (indicated by the svy: ) and so i dont have a population in number of subjects (only proportions) , neither a log likelihood (this said, i dont really understand why the logistic command won display the log likelihood when the pweight option that gives the exact same results can do it, but it is another question)
This question is more about statistics than about Stata, I will be plenty satisfied with a formula if there is no easy command in Stata allowing this.
Thank you for any help you can bring to me.
Comment