Hi Samuel,
The data are structured like this:
....after which I would like to build a Cox PH hazards model, but cluster for surgeon.
So I am assuming that cluster by surgeon will override the clustering by id, which is necessary for correct implementation of the Cox PH model with multiple episodes per patient.
The data are structured like this:
Code:
use http://www.stata-press.com/data/r8/stanford, clear gen surgeon=round(runiform()*10) stset stime, failure(died) id(id) stsplit posttran, after(wait) at(0) replace posttran = posttran + 1
So I am assuming that cluster by surgeon will override the clustering by id, which is necessary for correct implementation of the Cox PH model with multiple episodes per patient.