Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider all ways of adding a single additional predictor to model 2. Which one results in the smallest p-value of the Wald test for the
Consider all ways of adding a single additional predictor to model 2. Which one results in the smallest p-value of the Wald test for the significance of its regression coefficient? What is the p-value and how would you interpret the effect of this predictor has on the chance of developing diabetes?
library(faraway) library(dplyr) data(pima) summary(pima) pimafiltered = filter(pima, bmi > 0 & triceps >0)
model2 = lm(test~bmi+age+triceps+pregnant, data=pimafiltered)
pima data is used in model 2 and from faraway package
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started