Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

As part of s research procram for a new cholesterol drug, a phamaceutical compan

ID: 3061780 • Letter: A

Question

As part of s research procram for a new cholesterol drug, a phamaceutical company would ike to inveetigste the relationship between the ages and LDL (low density lipoprotein) cholesterol of men. The accompanying dats set shows the sges and LDL chclesterol levele of seven randomly selected men Constructs 95% prediction Interval to estimate the LDL cholesterol level of a 36-year-old men click the icon to view the data table. Delermine the upper and lower lmits of the prediction interval. Round to one decimal place as needed.) Age Cholesterol 1 22 38 25341 30 4D 159 195 155 141 Print Done

Explanation / Answer

SOl:

Rcode :

age <- c(22,38,25,32,41,30,42)
cholesterol <- c(140,179,159,195,155,141,206)
c <- data.frame(age,cholesterol)#creating datafroam from vectors age and cholesterol
attach(c)
rmod1.lm=lm(cholesterol~age)#lm to create linear regression
newdata=data.frame(age=36)#to predict for age 36
predict(rmod1.lm,newdata,interval="predict")#to find prediction interval

output:

LPL=110.6

UPL=237.6

fit lwr upr 174.1182 110.6072 237.6293