-sts list- command could compute the confidence intervals for survival function at specific time interval. However, no comparison was made and so no P values.
by -sts ci-

by -sts list-
by -sts ci-

by -sts list-

. sts test drug if age==67, logrank failure _d: died analysis time _t: studytime Log-rank test for equality of survivor functions | Events Events drug | observed expected ------+------------------------- 0 | 1 0.33 1 | 2 2.67 ------+------------------------- Total | 3 3.00 chi2(1) = 2.00 Pr>chi2 = 0.1573
sts test drug if age<=67, logrank
Comment