Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please access the data by using: install.packages(faraway) library(faraway) data(aflatoxin) in r studio. The two problems are one. 4. Read the help file in Faraway's aflatoxin

Please access the data by using:

install.packages("faraway")

library(faraway)

data(aflatoxin)

in r studio.

The two problems are one.

image text in transcribedimage text in transcribed
4. Read the help file in Faraway's aflatoxin data relating the dose of aflatoxin and the number of lab animals developing liver cancer. Use a variety of link functions in a glm for binary regression to model the probability of developing liver cancer depending on the dose of aflatoxin. Here we consider different link functions. logit: TT log( 1 - TT = a + Bdose logitmod=glm(cbind(tumor, total-tumor) dose,family=binomial(link="logit"),data=aflatoxin) probit: $ 1(7) = a + Bdose Where & is the cdf of a standard normal distribution. probitmod=glm(cbind(tumor, total-tumor) dose,family=binomial(link="probit" ),data=aflatoxin)Complementary log-log log(log(1 1r)) = a + dose cloglogmod=glm(cbind(tumor,total-tumor) dose,family=binomial(link=\" cloglog\" ),data=aatoxin) For each link function compare the observed versus expected proportions, and suggest which link function works best. Which model has the smallest deviance? 5 a. Repeat the steps of (4) except replace the variable close with log(dose+1). Does this improve the models for any link functions? b.. Using logistic regression with the untransformed dose, estimate the dose at which you would expect 50 percent to develop liver cancer. c. Using your single best model over all link functions and transformed or untransformed dose, predict the proportion developing liver cancer at a dose of 25, and provide a 95 percent condence interval for it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Algebra

Authors: Charles P McKeague

2nd Edition

ISBN: 1483263819, 9781483263816

More Books

Students also viewed these Mathematics questions

Question

LOQ 5-18: What is emerging adulthood?

Answered: 1 week ago

Question

1. Identify and control your anxieties

Answered: 1 week ago