Logistic Regression using R (Simple / Detailed)
HTML-код
- Опубликовано: 21 авг 2024
- Logistic Regression is a classification machine learning algorithm used to classify your output.
In this video, we will see how you can build a logistic regression (2 level) from scratch and then we can evaluate the performance of the same in simple easy steps.
1) Data profile
2) Data partition
3) Data modeling
4) Testing the machine learning model
5) Evaluate the model performance using
a) Receiver Operating Characteristics curve
b) Confusion Matrix
Great content on Classification algorithm
The predictions part is cool..thanks for explaining this..
You are welcome...
Hi Sir, thank you for your tutorial. I did data imputation on my small size(n=46) dataset and now need to do exact logistic regression by "elrm" package of R studio. fof is my dependent binary variable, age is numeric and predictor, injuries is binary predictor, minutes and mental health are continious predictors, and race is categorical with three groups. But my code fails because it does not recognize one part "n". I searched in online examples, They did not mention what this n(number of binomial trials) is and how they added this column to their datset.
my code:
data.elrm
Sorry for delay. Hope you have figured a way. If not, email your query to dataandyou@gmail.com
hi sir, can you give me the link of the data set?
Hi.. No problem..
stats.idre.ucla.edu/stat/data/binary.csv