Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: HosmerLemeshow C and H using matrix


From   "Moran, John (NWAHS)" <John.Moran@nwahs.sa.gov.au>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: HosmerLemeshow C and H using matrix
Date   Sun, 2 Oct 2005 10:36:53 +0930

The easiest way would appear to be the use of the "hl" command (having first
generated the probabilities) from:
http://www.sealedenvelope.com/


E-mail: john.moran@nwahs.sa.gov.au


-----Original Message-----
From: Colin Cooke [mailto:crcooke@gmail.com] 
Sent: Saturday, 1 October 2005 9:06 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: HosmerLemeshow C and H using matrix

I am in the process of comparing a published logistic regression model
to my own data. I would like to calculate H-L statistics C and H using
stata given only the beta coefficients of the published model and my
own data.


I have been able to calculate the C statistic using the following
command with Stata8.2:

lfit death, group(10) table beta(mat)

where mat is the matrix of published coefficients (col names =
variable names), and death is the dependent dichotomous variable.

Does anyone know how to get stat to calculate the H statistic using
only published coeff?
Thanks.

-C

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index