442 CHAPTER 14/HYPOTHESIS TESTING: PERSON-TIME DAT
14.64 For this analysis, we calculate the median duration of use among the current PMH users to be 48 months
for estrogen and 24 months for estrogen + progesterone. We then create indicator variables “longEst” and
Distribution Analysis: foluptm_3 by longEst_3
Variable: foluptm_3
Distribution Analysis: foluptm_3 by longEst_3
Variable: foluptm_3
longEst_3 = 1
Distribution Analysis: foluptm_3 by longEst_3
Distribution Analysis: foluptm_3 by longPro_3
Variable: foluptm_3
longPro_3 = 0
Distribution Analysis: foluptm_3 by longPro_3
Variable: foluptm_3
Distribution Analysis: foluptm_3 by longPro_3
Comparison of Survival Curves
14.65 Below, we use STATA to compare the two groups with respect to all available covariates, using two-
sample binomial tests and non-parametric Wilcoxon rank-sum test for all other variables, using the .prtest
and .ranksum commands. First, we make sure to recode the values in column ‘afb’ so that values of 98
are changed to missing, using the following code.