Tuesday, January 28, 2020

computed and store chi2

Hello stata users,

Thank you for taking the time to address my concern. (and sorry for my english..).I've been looking for two hours and I don't know how to do.

I want to check out , in my descriptives statistics if there's a difference between two samples (let say users and non users )

Because my DV and IV are categorical I cannot use p-value significance. I first used used this command : 2*ttail(e(df_r),abs(_b[VARIABLE1]/_se[Variable1] in a loop and obtain a matrix of descriptives statistics with significant differences , before I realized it wasn't appropriate.

my question is how do I computed chi2 statistic instead of pvalue (2*ttail(e(df_r),abs(_b[VARIABLE1]/_se[Variable1]) in stata ? how to do it by hand like the pvalue calculation?
Is there a relationship with pvalue and chi2 so I can use the pvalue I have, to calculate chi2?


Thank you very much for your help!

No comments:

Post a Comment