Professional Documents
Culture Documents
1.
Consider the data set in heart.csv.
2.
Adjust a multinomial regression model for the iris.csv data set to predict the species. Using the
maximum probability as the indicator for the outcome prediction, build a classification matrix.
3.
The dataset bdiag.csv, included several imaging details from patients that had a biopsy to test
for breast cancer.
1. Build a multinomial model using wcc, age, prevAB, pct, and crp to predict sbi.
2. Compute the confusion matrix.
3. How does the model classify a child with 1 year of age, wcc=29, pct=5, crp=200 and no
prevAB?
5.
The responses of the tobacco budworm Heliothis virescens to doses of pyrethroid trans-
cypermethrin were recorded (budworm.csv) from a small experiment. Twenty male and twenty
female moths were exposed at each of six doses of the pyrethroid, and the outcomw (killed or
not killed) was recorded.
1. Plot survival proportions against dose, distinguishing male and female moths.
2. Fit a logistic or regression on the survival outcome with dependent variables log(𝐷𝑜𝑠𝑒)
and 𝐺𝑒𝑛𝑑𝑒𝑟.
3. Check the model for goodness of fit and calculate the MacFaden 𝑅! , commenting its
value.
4. Determine the odds ratio for comparing the odds of a male moth dying to the odds to a
female moth dying.
5. Determine if there is any evidence of a difference in the mortality rates between the
male and female moths.
6. Determine the 90% confidence interval for the gender effect.
6.
After the explosion of the space shuttle Challenger on January 28, 1986, a study was conducted
[1, 4] to determine if previously-collected data about the ambient air temperature at the time
of launch could have been used to foresee potential problems with the launch (data set:
shuttles.csv).