Question: I need the solutions done in R. 5. Please install packages faraway and use prostate data. (a) (5 points) Create a sub-data called oddprostate which

I need the solutions done in R.
5. Please install packages faraway and use prostate" data. (a) (5 points) Create a sub-data called oddprostate which only contains the odd rows of the data. (b) (10 points) Calculate the mean, min, max and variance of each variable in our new oddprostate data. (c) (5 points) Use ordinary least square estimation to model two linear relationships: Ipsa ~lcavol and Icavol ~ lpsa, use original data. (d) (10 points) Display both regression lines on one plot. Use blue to represent lpsa~ Icavol, red to represent lcavol ~lpsa. 5. Please install packages faraway and use prostate" data. (a) (5 points) Create a sub-data called oddprostate which only contains the odd rows of the data. (b) (10 points) Calculate the mean, min, max and variance of each variable in our new oddprostate data. (c) (5 points) Use ordinary least square estimation to model two linear relationships: Ipsa ~lcavol and Icavol ~ lpsa, use original data. (d) (10 points) Display both regression lines on one plot. Use blue to represent lpsa~ Icavol, red to represent lcavol ~lpsa
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
