[R] two kind of Hosmer and Lemeshow’s test
I know that there are two method to apply the Hosmer and Lemeshow’s. One of them is calculated based on the fixed and pre-determined cut-off points of the estimated probability of success. One of them is calculated based on the percentiles of estimated probabilities. In the previous post,i find that the Hosmer and Lemeshow’s test how to use in R. hosmerlem - function (y, yhat, g = 10) { cutyhat - cut(x, breaks = quantile(yhat, probs = seq(0, 1, 1/g)), include.lowest = T) obs - xtabs(cbind(1 - y, y) ~ cutyhat) expect - xtabs(cbind(1 - yhat, yhat) ~ cutyhat) chisq - sum((obs - expect)^2/expect) P - 1 - pchisq(chisq, g - 2) c(X^2 = chisq, Df = g - 2, P(Chi) = P) } I want to know how can i use the another method which is not use the probability of success. i want to know how can i revise above program to achieve an objective. -- View this message in context: http://www.nabble.com/two-kind-of-Hosmer-and-Lemeshow%E2%80%99s-test-tp20380578p20380578.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] how to plot chi-square distribution in the graph
if i want to plot the chi-square distribution with a different degree of freedom how can i plot it in the graph?Sometimes i plot the histogram and cut it in a lot of piece.It's distribution like a chi-square.So i want to plot the chi-square with a different degree of freedom to compare it . -- View this message in context: http://www.nabble.com/how-to-plot-chi-square-distribution-in-the-graph-tp20160946p20160946.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] plot the chi square distribution and the histogram in the same graph
In the previous post ,i ask how to plot the normal curve and the histogram in the same graph.if i want to know how to plot the chi square distribution to campare the data set ,how can i do that? -- View this message in context: http://www.nabble.com/plot-the-chi-square-distribution-and-the-histogram-in-the-same-graph-tp20087671p20087671.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] how to plot the histogram and the curve in the same graph
i want to plot the histogram and the curve in the same graph.if i have a set of data ,i plot the histogram and also want to see what distribution it was.So i want to plot the curve to know what distribution it like. -- View this message in context: http://www.nabble.com/how-to-plot-the-histogram-and-the-curve-in--the-same-graph-tp20082506p20082506.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] HOW to use the Hosmer–Lemeshow test in R
i want to know how to use the Hosmer–Lemeshow test in R. Can anyone show me the program to me and tell me how to use it? -- View this message in context: http://www.nabble.com/HOW-to-use-the-Hosmer%E2%80%93Lemeshow-test%E2%80%8F-in-R-tp19675283p19675283.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.