using logistic regression to handle a binary outcome

Q1: In assessing the predictive power of categorical predictors of a binary outcome,

should logistic regression be used?

Q2: 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.html

 

“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!
Use Discount Code “Newclient”for a 15% Discount!”


Buy Custom Nursing Papers

The post using logistic regression to handle a binary outcome appeared first on Student Homeworks.

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational