Commit b2cba564 authored by MartinDavy's avatar MartinDavy

fin de l'exercice 3 du module 3

parent 0dee8c07
......@@ -227,6 +227,7 @@ Création d'un nouvelle colonne
data$Death = as.numeric(data$Status == "Dead")
```
Réalisation d'une régression logistique en utilisant la fonction glm et en précisant que la distribution des erreurs suit une loi Binomiale
```{r}
reg_log = glm(Death ~ Age + Smoker, family = binomial(link = logit), data = data)
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment