CHAPTER 13/DESIGN AND ANALYSIS TECHNIQUES FOR EPIDEMIOLOGIC STUDIES 384
goodness-of-fit of the model, we notice that we have what appear to be two outlying observations in both
the “Squared Residuals” and “Delta Beta” plots above. Furthermore, the goodness-of-fit results displayed
in the model output all have rather low p-values suggesting that our overall fit is not ideal.
13.48 For this analysis, we use STATA’s “xtgee” command, with the option family(binomial), which
fits a logistic regression model. We first use the command ‘xtset id’, which identifies the variable ‘id’ as
our clustering variable.
xtset id
xi: xtgee clear antibo i.age, family(binomial)
i.age _Iage_1-3 (naturally coded; _Iage_1 omitted)
——————————————————————————
clear | Coef. Std. Err. z P>|z| [95% Conf. Interval]
13.49-13.51 To calculate our efficacy scores, we use the coding
One-Sample T: Dmax, D12, Dav
Test of mu = 0 vs not = 0
13.52-13.54 For these analyses, we create new variables M = mean(Period 2 score, Period 4 score) for each
patient. Then we perform two-sample t-tests of the values Mmax, M12, and Mav, using treatment
assignment to denote the groups. We find no evidence of carry-over effect for any of the pain scores.
Two-Sample T-Test and CI: Mmax, Drg_ord