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)" <[email protected]>
To   "'[email protected]'" <[email protected]>
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: [email protected]


-----Original Message-----
From: Colin Cooke [mailto:[email protected]] 
Sent: Saturday, 1 October 2005 9:06 AM
To: [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index