Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

After loading the faraway library, use the help(pima) command to obtain details regarding the pima data set that was referenced in HW08. Become familiar with

image text in transcribed
After loading the faraway library, use the help(pima) command to obtain details regarding the pima data set that was referenced in HW08. Become familiar with the data set to provide context for this HW exercise. Use the R code below to help you obtain the crude and adjusted Odds Ratios. a) Interpret the adjusted Odds Ratio for diastolic. b) Perform the Likelihood Ratio Test to determine if age, insulin, and triceps can be dropped from the model using and overall alpha=0.05. c) Perform the Likelihood Ratio Test to determine if the coefficient of diastolic is equal to the coefficient of insulin using alpha=0.05. library(faraway) library(Imtest) library(epiDisplay) #Multiple Logistic Regression in R logistic = glm(test ~ age + bmi + diastolic + diabetes + glucose + insulin + pregnant + triceps,family=binomial(logit),data=pima) summary(logistic) ## Easier view logistic.display(logistic) #Example code for Likelihood Ratio Test #for HO: B(triceps)=0 #write model without triceps logistic1 = glm(test ~ age + bmi + diastolic + diabetes + glucose + insulin + pregnant,family=binomial(logit),data=pima) Irtest(logistic1,logistic)

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

More Books

Students also viewed these Mathematics questions

Question

Connect with your audience

Answered: 1 week ago