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
Orthogonalize lagged values of an independent variableDear all, I am running an xtlogit with a lagged independent variable (the variable is stationary), b…
Gravity model: How to solve the country fixed effectMy gravity model is to estimate the effect of farm subsidy on farm export. Country fixed effect and …
Stata legend: make it larger and allow for more colorsHello everyone, I am trying to make a twoway line plot with many (more than 20) overlaid lines. I ha…
xtreg/reghdfe + dynamic forecastingHi there, I am using a two-way fixed effects model that I would like to use to forecast and simulat…
Collapse by groups : add a total rowHi! I'm trying to add a "total" row to a data frame such that it corresponds to the sum of all my g…
Subscribe to:
Post Comments (Atom)
0 Response to Transform or eform teffects ipw to odds and risk ratio
Post a Comment