




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





4/5/04 1
4/5/04 2
4/5/04 3
4/5/04 4
Intercept months
Term -3.
Estimate
Std Error
ChiSquare
Prob>ChiSq
For log odds of 1/
Parameter Estimates
months
Source 1
Nparm 1
DF
Wald ChiSquare
Prob>ChiSq
Effect Wald Tests
4/5/04 5
k
4/5/04 6
4/5/04 7
4/5/04 8
2 2
4/5/04 9
l Refer to the example that begins on page 581.
l In Table 14.3 are the first half of the cases ( cases) from Appendix C10: the Disease Outbreak data set.
l Data are from a study to investigate the epidemic outbreak of a disease that is spread by mosquitoes. l Response is the presence of disease in an individual (1 = yes, 0 = no).
4/5/04 10
4/5/04 11
4/5/04 12
4/5/04 19
4/5/04 20
Converged by Gradient Whole-Model Test Model Difference Full Reduced
-LogLikelihood
DF 3
ChiSquare
Prob>ChiSq
RSquare (U) Observations (or Sum Wgts)
98
As on slide 16.
4/5/04 21
l Here. The full model contains four regressors and the reduced model contains 3. The chi- square statistic will thus have 4 – 3 = 1 d.f. l Its value is 2(53.1018 – 50.5271) = 5.1494, as is found on slide #18. l Since p = 0.0233, we would conclude that age should be retained in the model.
4/5/04 22
l Note that the Effect Test box looks almost identical to the Likelihood Ratio Tests box (see next slide). l The difference is that the Effect Test uses the Wald Chi-Square instead of the L-R Chi- Square.
4/5/04 23
Effect Test
Source age middle lower sector
Nparm 1 1 1 1
DF 1 1 1 1
Wald ChiSquare
Prob>ChiSq
4/5/04 24
l Our results indicate that neither the middle SES nor the lower SES differs significantly from the upper SES in terms of disease incidence. l Does that mean that there is no effect of SES? l We can test H0: βmid = βlow = 0|βage, βsec in two ways:
4/5/04 25
l If we fit the model with only age and the sector 2 indicator, the –LogLikelihood value for the reduced model is 51.129665. l Twice the difference between this and the – logL for the model including SES is only χ 2 =1.205, with 2 d.f. l This is (according to the tables in the book) not even close to being significant at 0.10. l Note: the value 1.205 can also be found on slide #27.
4/5/04 26
l We can also get this simultaneous test by allowing JMP to code the SES levels. l Designate SES and Sector as nominal and let JMP take care of the coding. l We see under Effect Test the same Chi- Square value as from fitting the reduced model.
4/5/04 27
Effect Likelihood-Ratio Tests
Source age ses sector
Nparm 1 2 1
DF 1 2 1
L-R ChiSquare
Prob>ChiSq
4/5/04 28
l If the sample size is large, then
for j = 1, 2, …, k. l Thus, an approximate 100(1 – α)% confidence interval on βj is given by
l JMP has a selection for these confidence intervals in the drop down menu.
b (^) j ± z (^) ( 1 − α / 2 (^) ) s b { (^) j }
j j
j
4/5/04 29
l From slide #11, we have that
= =
R LogLikelihood reduced^ LogLikelihood full LogLIkelihood reduced
4/5/04 30
l The fitted logistic regression equation gives predicted probabilities of success, given values of the regressors. l Based on these probabilities, we can classify an individual as a success or a failure:
4/5/04 37
4/5/04 38
l In Table 14.12, the overall error rate seems to be minimized when the cutoff is 0.325.
4/5/04 39
l The parameter estimates, and thus predicted probabilities, are optimal for the data from which they were derived.
l You would not expect this equation to perform as well on new data.
l If you have a holdout sample, you can apply these results and see how well your fitted model performs.
4/5/04 40
l We used the first half of the cases in the data set to fit the model. Now let’s use it on the other half and see how well it does. l Select the last 98 cases from the data file. l Define a column of predicted probabilities using the equation in slide #9. l Define a column defining “success” and “failure” based on the predicted probabilities.
4/5/04 41
Error Rate Summary (1 = disease)
Contingency Table
4/5/04 42
4/5/04 43
4/5/04 44
l Problems 14.13, 14.
l Due: __________________