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
intra class correlationHello to everybody, I'll try to do for the first time the calculation of intra class correlation bet…
checking linearity with lack of fit testHello, I'm running a linearity check (analitical data), and I'd like to run lack of fit test after l…
converting annual to quarty in Statahello , I have yearly(from 1996 to 2020) dataset of uncertainty trade, I want to change them to quar…
Instrumental VariableHey everyone, I have the following equation: y=aX1+bX2+cX3+dX4+e I am instrumenting Z1 for X1 and…
Function of the variable(s) in i() of a -reshape- especially when groupedI'm trying to understand how to interpret the i(varlist) in reshape when it is a grouped variable cr…
Subscribe to:
Post Comments (Atom)
0 Response to Transform or eform teffects ipw to odds and risk ratio
Post a Comment