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
Standardized beta estimates for interaction terms in mixed effect modelsDear Statalist, I am using mixed-effects to run the below model, but wondering how to get the stand…
Calculate percentage for similar entriesHi all, I have the following table where I want to generate the variable "board_independence". The…
esttab output format for mixed interaction modelsDear Statalist, I need output the mixed interaction effects using esttab. However, I have two model…
clustered standard errors or just robust? panel dataHi there, I have to use an event study methodology to estimate the impact of the event (child birth…
Interrupted time series - negative "constant"I'm trying to run a Interrupted time series analysis for single group using the "ITSA" package Code…
Subscribe to:
Post Comments (Atom)
0 Response to Transform or eform teffects ipw to odds and risk ratio
Post a Comment