Question: 2. The data set prostate in the faraway package is from a study on 97 men with prostate cancer who were due to receive a
2. The data set prostate in the faraway package is from a study on 97 men with prostate cancer who were due to receive a radical prostatectomy, we are interest is in predicting Ipsa (log prostate specific antigen) with lcavol (log cancer volume). (a) Draw a scatterplot - does a simple linear regression model seem reasonable? (b) Without using the R function lm(), compute the values , ,5xx,SYY and SXY. Com- pute the ordinary least squares estimates of the intercept and slope for the simple linear regression model, and draw the fitted line on your plot from part (a). (c) Obtain the estimate of 2 and find the estimated standard errors of Bo and (d) Find the estimated covariance between A and ai. (e) Carry out t-tests for the two null hypotheses Ao = 0 and 0, reporting the value of the test statistic and a p-value in each case. () Use the R function Im() to fit the regressions of Ipsa on lcavol
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
