Binary logistic regression in R studio (codes link on the description)

preview_player
Показать описание
This video is a step by step analysis to fit binary regression analysis on the heart data set found on CRAN from 'catdata' package. You will need to install the package cat data.
Installing the package and reading the data set you will need the following commands
library(catdata)
data(heart)
#make data frame
#histogram for age distribution
hist(Heartdata$age, breaks = 4, col = "#97B3C6",
main = "Age Distribution", xlab = "AGE",)
#logistic regression plot
glm(y~., family= "binomial", data = Heartdata)
summary(logistic)
Рекомендации по теме
Комментарии
Автор

Thank you for your help, I just liked

samjumuia