Fitting logistic models
Many business problems require the prediction of a binary response variable. Your future employer may need to detect spam e-mails, credit card frauds, or rare diseases.
The logistic regression model is the go-to method for binary classification problems.
In this exercise, you will use Parkinson's dataset from the UCI repository. This dataset is composed of a range of biomedical voice measurements from people with and without Parkinson's disease.
You will use the following variables from the dataset:
status- 1 - if a person has Parkinson's disease, 0 - otherwise,NHR- a measure of the ratio of noise to tonal components in the voice,DFA- a signal fractal scaling exponent.
The dataset is available as parkinsons.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Practicing Statistics Interview Questions in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Plot status vs NHR
___(status ~ ___, data = ___)
# Plot status vs DFA
___(___ ~ ___, ___ = ___)