Regression to handle a binary outcome
Objective: Using Logistic Regression to handle a binary outcome. Given the prostate cancer dataset, in which biopsy results are given for 97 men: • You are to predict tumor spread in this dataset of 97 men who had undergone a biopsy. • The measures to be used for prediction are: age, lbph, lcp, gleason, and lpsa. This implies that binary dependent variable of lcavol will be the outcome variable. We start by loading the appropriate libraries in R: ROCR, ggplot2, and aod packages as follows: > install.packages("ROCR") > install.packages("ggplot2") > install.packages("aod") > library(ROCR) > library(ggplot2) > library(aod) Next, we load the csv file and check the statistical properties of the csv File as follow: > setwd("C:/RData”) # your working directory > tumor <- read.csv("prostate.csv") # loading the file > str(tumor) # check the properties of the file . . . continue from here! Reference R Documentation (2016). Prostate cancer data. Retrieved from http://rafalab.github.io/pages/649/prostate.htm
7 years ago
10
Purchase the answer to view it

- LOGISTICREGRESSION.docx
- 666.pdf
- prostate.csv
- an editorial from the point of view of the late nineteenth century expressing farmersâ concerns and exploring possible solutions for...
- Board Of Directors Roles.make short introduction about what the paper presents. 2- include in details the types directors And what is the role of each director? Including the CEO and the role of shareholders. 3 - include Major empirical studies on board c
- Acct work help
- Research children’s health issues
- Log(4x+10)=3
- Earth Science
- Nightingale
- Alignment of Assessments
- HCS 446 Week 4 Team Assignment Facility Planning Part III Paper
- HCR230 week 3 Individual Assignment the Welfare Reform Act Paper