Dear Sanam:
The time has come for you to sign your posts with your full (first and last) names, as now requested in the Statalist FAQ.
To answer your question: Your command syntax is correct.
Steve
On Dec 5, 2012, at 1:10 AM, Sanam P wrote:
Dear Statalist
In the project I am working on, I have both patient level factors and hospital level factors to look at (e.g. age, gender, type of hospital(public/private) etc).
I would like to fit a random effect cox regression model to be able to account for clustering of patients within hospitals and also to investigate the effect of both individual level and hospital level factors on the outcome.
Just would like to double check whether this can be done using "shared(hospital)" option in stcox?
stcox age i.gender i.hosptype, shared(hospital)
Any comment would be very useful and very much appreciated.
Many thanks,
Sanam
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/