Hi,
I would like to know how to do an ITT analysis for binary outcomes. Thank you.
I would like to know how to do an ITT analysis for binary outcomes. Thank you.
keep if samp_itt ... perform your analysis here ...
regress .... if samp_itt logit ... if samp_itt
rand death numevent treceived 0 0 30 30 0 1 70 70 1 0 60 40 1 1 40 20 logit death rand [fw=numevent], Iteration 0: log likelihood = -137.62776 Iteration 1: log likelihood = -128.40497 Iteration 2: log likelihood = -128.3876 Iteration 3: log likelihood = -128.3876 Logistic regression Number of obs = 200 LR chi2(1) = 18.48 Prob > chi2 = 0.0000 Log likelihood = -128.3876 Pseudo R2 = 0.0671 ------------------------------------------------------------------------------ death | Coefficient Std. err. z P>|z| [95% conf. interval] -------------+---------------------------------------------------------------- rand | -1.252763 .2988072 -4.19 0.000 -1.838414 -.6671117 _cons | .8472978 .2182179 3.88 0.000 .4195986 1.274997 ------------------------------------------------------------------------------
tab outcome group, col chi2
glm outcome i.group, family(binomial) link(<linkname>)
Comment