------------------------------------------------------------------------------------------------- log: C:\MyDocs\MPH\Text\SecondEdition\WebDoFiles\5.32.3.Sepsis.log log type: text opened on: 30 Dec 2007, 21:01:38 . * 5.32.3.Sepsis.log . * . * Regress fate against race and oxygen delivery in black and . * white patients from the Ibuprofen in Sepsis Study (Bernard et al. 1997). . * . use C:\WDDtext\1.4.11.Sepsis.dta ,clear . keep if race <2 (32 observations deleted) . logistic fate race o2del Logistic regression Number of obs = 161 LR chi2(2) = 7.56 Prob > chi2 = 0.0228 Log likelihood = -105.19119 Pseudo R2 = 0.0347 ------------------------------------------------------------------------------ fate | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- race | 1.384358 .5933089 0.76 0.448 .5976407 3.206689 o2del | .9988218 .0004675 -2.52 0.012 .9979059 .9997385 ------------------------------------------------------------------------------ . * . * Let o2mis indicate whether o2del is missing. Set o2del1 = o2del when . * oxygen delivery is available and = 0 when it is not. . * . generate o2mis = missing(o2del) . generate o2del1 = o2del (262 missing values generated) . replace o2del1 = 0 if o2mis (262 real changes made) . logistic fate race o2del1 o2mis Logistic regression Number of obs = 423 LR chi2(3) = 14.87 Prob > chi2 = 0.0019 Log likelihood = -276.33062 Pseudo R2 = 0.0262 ------------------------------------------------------------------------------ fate | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- race | 1.847489 .4110734 2.76 0.006 1.194501 2.857443 o2del1 | .9987949 .0004711 -2.56 0.011 .9978721 .9997186 o2mis | .2364569 .1205078 -2.83 0.005 .0870855 .6420338 ------------------------------------------------------------------------------ . log close log: C:\MyDocs\MPH\Text\SecondEdition\WebDoFiles\5.32.3.Sepsis.log log type: text closed on: 30 Dec 2007, 21:01:38 -----------------------------------------------------------------------------------------------