Displaying 1 result from an estimated 1 matches for "diseaseoutbreakdata".
2008 Sep 16
2
Hosmer- Lemeshow test
...osmer - Lemeshow test .
In order to understand the use of R - language, I had referred the following URL
http://www.stat.sc.edu/~hitchcock/diseaseoutbreakRexample704.txt
The related data 'diseaseoutbreak' is available at the following URL
http://www.stat.sc.edu/~hitchcock/diseaseoutbreakdata.txt
The R code as mentioned therein is
####
# A function to do the Hosmer-Lemeshow test in R.
# R Function is due to Peter D. M. Macdonald, McMaster University.
#
hosmerlem <-
function (y, yhat, g = 10)
{
cutyhat <- cut(yhat, breaks = quantile(yhat, probs = seq(0,
1, 1/g)), i...