Anda di halaman 1dari 2

24/11/2018 RPubs - Regresión logística en R

RPubs brought to you by RStudio


Regresión logística en R
Sign in Register

,
72, 71, 40, 69, 64, 56, 49, 54, 53, 66, 67, 40, 46, 69, 40, 41
by Joaquín Amat Rodrigo | Statistics - Machine Learning & Data Science | j.amatrodrigo@gmail.com
,
57, 58, 57, 37, 55, 62, 64, 40, 50, 46, 53, 52, 45, 56, 45, 54
Last updated about 2 years ago
,
56, 41, 54, 72, 56, 47, 49, 60, 54, 55, 33, 49, 43, 50, 52, 48
Comments (–) Share Hide Toolbars
,
58, 43, 41, 43, 46, 44, 43, 61, 40, 49, 56, 61, 50, 51, 42, 67
,
53, 50, 51, 72, 48, 40, 53, 39, 63, 51, 45, 39, 42, 62, 44, 65
,
63, 54, 45, 60, 49, 48, 57, 55, 66, 64, 55, 42, 56, 53, 41, 42
,
53, 42, 60, 52, 38, 57, 58, 65)
datos <- data.frame(matricula, matematicas)
head(datos, 4)

## matricula matematicas
## 1 0 41
## 2 0 53
## 3 0 54
## 4 0 47

Representación de las observaciones

Representar las observaciones es útil para intuir si la variable independiente


escogida está relacionada con la variable respuesta y por lo tanto puede ser un
buen predictor.
Hide

require(ggplot2)
table(datos$matricula)

##
## 0 1

https://rpubs.com/Joaquin_AR/229736 1/2
24/11/2018 RPubs - Regresión logística en R

https://rpubs.com/Joaquin_AR/229736 2/2

Anda mungkin juga menyukai