Hi,
Thank you in advance for your support! I'm trying to understand if/how my model is better if I remove two variables. When I run my model, I see the Prob > chi2 in bold here below:
Thanks for your help!
Arielle
Thank you in advance for your support! I'm trying to understand if/how my model is better if I remove two variables. When I run my model, I see the Prob > chi2 in bold here below:
logistic ab_ph_bp_high i.cn_agecat z_gender_n i.c_wi_quintiles i.c_sp_fr_cat c_sp_whodas_norm i.c_mh_phq_caIt is statistically significant, which I thought was a good sign. However, when I run estat gof on the same model, I get a *different* value:
> t_n hu_bp_m hu_bp_td hu_drg_any
Logistic regression Number of obs = 2,804
LR chi2(16) = 161.41
Prob > chi2 = 0.0000
Log likelihood = -1511.2756 Pseudo R2 = 0.0507
. estat gofThis is not statistically significant, which I have read is what you want from the estat gof output. I'm confused how the model can have two different prob > chi2 values though depending on which command I use to call it in Stata?
Goodness-of-fit test after logistic model
Variable: ab_ph_bp_high
Number of observations = 2,804
Number of covariate patterns = 2,164
Pearson chi2(2147) = 2176.84
Prob > chi2 = 0.3215
Thanks for your help!
Arielle
Comment