Week 8 Assignment - 100 points
Objective: Using Logistic Regression to manipulate a binary fruit.
Given the prostate cancer axiomsset, in which biopsy results are absorbed for 97 men:
• You are to forecast protuberance unfurl in this axiomsset of 97 men who had undergone a biopsy.
• The measures to be used for forecastion are: age, lbph, lcp, gleason, and lpsa. This implies that binary relative fickle of lcavol obtain be the fruit fickle.
We initiate by assaulting the divert libraries in R: ROCR, ggplot2, and aod packages as follows:
> inaugurate.packages("ROCR") > inaugurate.packages("ggplot2") > inaugurate.packages("aod") > library(ROCR) > library(ggplot2) > library(aod) Next, we assault the csv polish and impede the statistical properties of the csv Polish as follow:
> setwd("C:/RData”) # your launched directory
> protuberance <- learn.csv("prostate.csv") # assaulting the polish
> str(tumor) # impede the properties of the polish
. . . live from here!
R Documentation (2016). Prostate cancer axioms. Retrieved from http://rafalab.github.io/pages/649/prostate.html