Hi Everyone,
First time Stata user and statistics imposter. I would like to exponentiate the results I have to an odds ratio, risk ratio and risk difference. See my code below, social housing is the binary exposure (treatment) and smoking after five years (binary) the outcome. I get "stuck" on the nlcom. Any advice would be much appreciated!!
***Analysis1(outcome model)(treatment model) average treatment effect in population
teffects ipw (smoke_later) (socialhousing i.hgage hgsex i.inc_tert famtype i.hheduc householdsmok1), ate
tebalance summarize
tebalance overid, nolog
**Analysis2(outcome model)(treatment model) estimate potential-outcome means
teffects ipw (smoke_later) (socialhousing i.hgage hgsex i.inc_tert famtype i.hheduc householdsmok1), pomeans
tebalance summarize
nlcom log(_b[POmeans:1.socialhousing]/ _b[POmeans:0bn.socialhousing])
Related Posts with Transform or eform teffects ipw to odds and risk ratio
Plotting curves for hazard model with firm level stratificationDear all, I am running a stratified cox model on a firm-year dataset. The command i use is: stset y…
Order studies within group by time in meta-analysis forest plotHi everyone I am working on a forest plot. I want to order the studies within each group by publica…
Stock Prices Technical Analysis Pattern Recognition using STATAHello everyone. I am trying to use STATA to detect technical analysis patterns in stock prices. Does…
Making an average when there are more than two values in different lines (of the same ID)Hi, everyone I am struggling with restructuring my data. Below is the format of my data: PID stand…
new package twby available on SSC: create a cross-tabulation of graphsThanks to Kit Baum, a new package, twby, is now available on SSC. It is a prefix command for twoway …
Subscribe to:
Post Comments (Atom)
0 Response to Transform or eform teffects ipw to odds and risk ratio
Post a Comment