Análisis de variable dependiente

Variable independiente

Estadísticos descriptivos

[1] "character"
# A tibble: 2 × 3
  habito_lectura         Freq Porcentaje
  <fct>                 <int>      <dbl>
1 No lee frecuentemente  1493       44.1
2 Sí lee frecuentemente  1889       55.9
[1] Sí lee frecuentemente
attr(,"freq")
[1] 1889
Levels: No lee frecuentemente Sí lee frecuentemente

Gráfico de frecuencias

tibble [3,382 × 11] (S3: tbl_df/tbl/data.frame)
 $ asistencia_club      : chr [1:3382] "2" "2" "2" "2" ...
 $ asistencia_biblioteca: chr [1:3382] "2" "2" "2" "1" ...
 $ asistencia_festival  : chr [1:3382] "2" "2" "2" "1" ...
 $ lengua_materna       : chr [1:3382] "10" "10" "10" "10" ...
 $ etnia                : chr [1:3382] "6" "7" "6" "7" ...
 $ nivel_educ           : chr [1:3382] "5" "6" "6" "9" ...
 $ estratosocio         : num [1:3382] 5 5 5 5 5 5 5 5 4 4 ...
 $ sexo                 : num [1:3382] 2 1 2 1 1 2 1 2 2 1 ...
 $ edad                 : num [1:3382] 38 57 33 32 59 37 42 39 33 46 ...
 $ UBIGEO               : num [1:3382] 150202 150202 150202 150202 150202 ...
 $ habito_lectura       : Factor w/ 2 levels "No lee frecuentemente",..: 2 1 1 1 2 1 1 1 1 1 ...
 - attr(*, "na.action")= 'omit' Named int [1:3408] 1 2 6 8 11 15 19 21 23 24 ...
  ..- attr(*, "names")= chr [1:3408] "1" "2" "6" "8" ...

   1   10   11   12    3    4    5    6    8    9 
   1  540  666  120   41   64  185 1017  264  484 

  10   11   12    3    4    5    6    8    9 
 540  666  120   41   64  185 1017  264  484 

  1   2   3   4   5   6 
280 520 807 929 766  80 
 Ord.factor w/ 6 levels "Rural"<"Bajo"<..: 2 2 2 2 2 2 2 2 3 3 ...
 chr [1:3382] "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" ...

   1   10   11   12   13    2    4    7 
 172 3195    1    3    3    6    1    1 

   Español Originaria 
      3202        180 
 chr [1:3382] "5" "6" "6" "9" "6" "11" "6" "11" "6" "11" "9" "9" "6" "9" ...
   Length     Class      Mode 
     3382 character character 
 num [1:3382] 5 6 6 9 6 11 6 11 6 11 ...
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
  3.000   6.000   9.000   8.293  10.000  12.000       1 

   3    4    5    6    8    9   10   11   12 
  41   64  185 1017  264  484  540  666  120 
 Ord.factor w/ 4 levels "Escolar"<"Tecnica"<..: 1 1 1 2 1 3 1 3 1 3 ...

Chi-cuadrado

Análisis chi-cuadrado

Pruebas chi-cuadrado

Column {data-width=650}

Prueba 1: habito de lectura y asistencia a club


    Pearson's Chi-squared test with Yates' continuity correction

data:  tabla1
X-squared = 27.264, df = 1, p-value = 1.775e-07

Prueba 2: habito de lectura y asistencia a bibliotecas


    Pearson's Chi-squared test with Yates' continuity correction

data:  tabla2
X-squared = 37.137, df = 1, p-value = 1.101e-09

Prueba 3: habito de lectura y asistencia a festival


    Pearson's Chi-squared test with Yates' continuity correction

data:  tabla3
X-squared = 24.887, df = 1, p-value = 6.078e-07

Prueba 4:habito de lectura y lengua materna


    Pearson's Chi-squared test with Yates' continuity correction

data:  tabla4
X-squared = 0.21966, df = 1, p-value = 0.6393

Prueba 5:habito de lectura y etnia


    Pearson's Chi-squared test

data:  tabla5
X-squared = 2.7449, df = 4, p-value = 0.6014

Prueba 6: habito de lectura y nivel educativo


    Pearson's Chi-squared test

data:  tabla6
X-squared = 18.921, df = 3, p-value = 0.0002839
###Prueba 7 : habito de lectura y sexo

    Pearson's Chi-squared test with Yates' continuity correction

data:  tabla7
X-squared = 8.5646, df = 1, p-value = 0.003428
###Prueba 8:habito de lectura y estratosocioeconómico

    Pearson's Chi-squared test

data:  tabla8
X-squared = 4.6003, df = 5, p-value = 0.4666

Gráficos de las pruebas chi-cuadrado

1. Relación entre el hábito de lectura y la asistencia al club

                       
                          Sí   No
  No lee frecuentemente   66 1427
  Sí lee frecuentemente  172 1717

2. Relación entre el hábito de lectura y la asistencia a la biblioteca

                       
                          Sí   No
  No lee frecuentemente  138 1355
  Sí lee frecuentemente  311 1578

3. Relación entre el hábito de lectura y la asistencia a festivales del libro

                       
                          Sí   No
  No lee frecuentemente  301 1192
  Sí lee frecuentemente  522 1367

4. Relación entre el hábito de lectura y la lengua materna

                       
                        Español Originaria
  No lee frecuentemente    1410         83
  Sí lee frecuentemente    1792         97

5. Relación entre el hábito de lectura y la etnia

                       
                        Afroperuano Blanco Indigena Mestizo No sabe/No responde
  No lee frecuentemente          26     72      171    1172                  52
  Sí lee frecuentemente          39     80      196    1516                  58

6. Relación entre el hábito de lectura y el nivel educativo

                       
                        Escolar Tecnica Universitario Maestria/Doctorado
  No lee frecuentemente     621     347           480                 45
  Sí lee frecuentemente     686     401           726                 75
###7.Relación entre el hábito de lectura y el sexo
                       
                        Hombre Mujer
  No lee frecuentemente    706   787
  Sí lee frecuentemente    797  1092

###8.Relación entre el hábito de lectura y el estratosocioeconómico

                       
                        Rural Bajo Medio bajo Medio Medio alto Alto
  No lee frecuentemente    42  324        406   353        238  130
  Sí lee frecuentemente    38  442        523   454        282  150

Regresión logística

Análisis de regresión

Regresiones

Regresión 1

Regresión Logística - Habito de Lectura
Regresión Logística - Habito de Lectura
(Intercept) 1.757***
(0.200)
asistencia_clubNo -0.651***
(0.152)
asistencia_festivalNo -0.299***
(0.086)
asistencia_bibliotecaNo -0.443***
(0.115)
sexoMujer 0.203**
(0.071)
edad -0.011***
(0.003)
Num.Obs. 3381
AIC 4555.6
BIC 4592.3
Log.Lik. -2271.790
F 17.991
RMSE 0.49
+ p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001

Regresión 2

Regresión Logística - Habito de Lectura
Regresión Logística - Habito de Lectura
(Intercept) 1.670***
(0.211)
asistencia_bibliotecaNo -0.402***
(0.117)
asistencia_festivalNo -0.282**
(0.088)
asistencia_clubNo -0.623***
(0.153)
estratosocio.L -0.117
(0.166)
estratosocio.Q -0.180
(0.148)
estratosocio.C 0.117
(0.117)
estratosocio^4 -0.064
(0.090)
estratosocio^5 0.071
(0.074)
nivel_educ.L 0.319*
(0.141)
nivel_educ.Q 0.078
(0.112)
nivel_educ.C -0.035
(0.079)
sexoMujer 0.209**
(0.071)
edad -0.010***
(0.003)
Num.Obs. 3381
AIC 4558.5
BIC 4644.2
Log.Lik. -2265.235
F 7.856
RMSE 0.49
+ p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001

Regresión 3

Regresión Logística - Habito de Lectura
Regresión Logística - Habito de Lectura
(Intercept) 1.881***
(0.332)
asistencia_bibliotecaNo -0.399***
(0.117)
asistencia_festivalNo -0.283**
(0.088)
asistencia_clubNo -0.637***
(0.153)
estratosocio.L -0.125
(0.167)
estratosocio.Q -0.179
(0.148)
estratosocio.C 0.127
(0.118)
estratosocio^4 -0.067
(0.090)
estratosocio^5 0.078
(0.074)
nivel_educ.L 0.317*
(0.141)
nivel_educ.Q 0.082
(0.112)
nivel_educ.C -0.035
(0.079)
etniaBlanco -0.268
(0.307)
etniaIndigena -0.330
(0.280)
etniaMestizo -0.184
(0.261)
etniaNo sabe/No responde -0.321
(0.324)
sexoMujer 0.210**
(0.071)
edad -0.010***
(0.003)
Num.Obs. 3381
AIC 4563.7
BIC 4674.0
Log.Lik. -2263.864
F 6.149
RMSE 0.49
+ p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001

Regresión 4

Regresión Logística - Habito de Lectura
Regresión Logística
(Intercept) 1.891***
(0.332)
asistencia_bibliotecaNo -0.396***
(0.117)
asistencia_festivalNo -0.285**
(0.088)
asistencia_clubNo -0.638***
(0.153)
estratosocio.L -0.113
(0.167)
estratosocio.Q -0.186
(0.148)
estratosocio.C 0.132
(0.118)
estratosocio^4 -0.067
(0.090)
estratosocio^5 0.077
(0.074)
nivel_educ.L 0.323*
(0.141)
nivel_educ.Q 0.080
(0.112)
nivel_educ.C -0.034
(0.079)
etniaBlanco -0.271
(0.307)
etniaIndigena -0.367
(0.283)
etniaMestizo -0.190
(0.262)
etniaNo sabe/No responde -0.325
(0.324)
lengua_maternaOriginaria 0.144
(0.169)
sexoMujer 0.211**
(0.071)
edad -0.010***
(0.003)
Num.Obs. 3381
AIC 4565.0
BIC 4681.4
Log.Lik. -2263.499
F 5.844
RMSE 0.49
+ p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001

Comparación de modelos (coef. exponenciados)

Regresión Logística (Coeficientes Exponenciados)
&nbsp;Modelo Logístico (I) &nbsp;Modelo Logístico (II) &nbsp;Modelo Logístico (III) &nbsp;Modelo Logístico (IV)
(Intercept) 5.7940*** 5.3113*** 6.5603*** 6.6287***
[3.9324, 8.6247] [3.5253, 8.0787] [3.4477, 12.6748] [3.4815, 12.8149]
asistencia_clubNo 0.5215*** 0.5361*** 0.5288*** 0.5285***
[0.3846, 0.6997] [0.3950, 0.7200] [0.3893, 0.7108] [0.3891, 0.7105]
asistencia_festivalNo 0.7415*** 0.7545** 0.7537** 0.7523**
[0.6267, 0.8764] [0.6350, 0.8956] [0.6342, 0.8948] [0.6330, 0.8932]
asistencia_bibliotecaNo 0.6422*** 0.6688*** 0.6713*** 0.6728***
[0.5119, 0.8028] [0.5311, 0.8392] [0.5329, 0.8426] [0.5341, 0.8446]
sexoMujer 1.2255** 1.2327** 1.2338** 1.2353**
[1.0669, 1.4079] [1.0724, 1.4172] [1.0733, 1.4185] [1.0745, 1.4203]
edad 0.9890*** 0.9898*** 0.9899*** 0.9896***
[0.9836, 0.9943] [0.9843, 0.9952] [0.9844, 0.9953] [0.9841, 0.9951]
estratosocio.L 0.8900 0.8825 0.8936
[0.6432, 1.2331] [0.6368, 1.2246] [0.6440, 1.2415]
estratosocio.Q 0.8350 0.8364 0.8302
[0.6244, 1.1155] [0.6249, 1.1181] [0.6200, 1.1105]
estratosocio.C 1.1240 1.1358 1.1409
[0.8929, 1.4158] [0.9019, 1.4313] [0.9057, 1.4381]
estratosocio^4 0.9378 0.9356 0.9352
[0.7857, 1.1190] [0.7837, 1.1167] [0.7833, 1.1162]
estratosocio^5 1.0733 1.0808 1.0797
[0.9284, 1.2409] [0.9346, 1.2499] [0.9336, 1.2488]
nivel_educ.L 1.3756* 1.3727* 1.3818*
[1.0457, 1.8206] [1.0433, 1.8172] [1.0497, 1.8299]
nivel_educ.Q 1.0807 1.0859 1.0836
[0.8698, 1.3484] [0.8735, 1.3555] [0.8716, 1.3527]
nivel_educ.C 0.9659 0.9656 0.9670
[0.8283, 1.1271] [0.8280, 1.1270] [0.8292, 1.1287]
etniaBlanco 0.7650 0.7627
[0.4161, 1.3920] [0.4148, 1.3882]
etniaIndigena 0.7187 0.6925
[0.4116, 1.2387] [0.3940, 1.2016]
etniaMestizo 0.8318 0.8274
[0.4934, 1.3814] [0.4907, 1.3744]
etniaNo sabe/No responde 0.7255 0.7224
[0.3824, 1.3640] [0.3807, 1.3583]
lengua_maternaOriginaria 1.1550
[0.8301, 1.6111]
Num.Obs. 3381 3381 3381 3381
AIC 4555.6 4558.5 4563.7 4565.0
BIC 4592.3 4644.2 4674.0 4681.4
Log.Lik. -2271.790 -2265.235 -2263.864 -2263.499
F 17.991 7.856 6.149 5.844
RMSE 0.49 0.49 0.49 0.49
+ p < 0.1, * p < 0.05, ** p < 0.01, *** p < 0.001

Comparación de modelos

Tabla LRT para comparar modelos
#Df LogLik Df Chisq Pr(>Chisq)
6 -2271.790 NA NA NA
14 -2265.235 8 13.1107667 0.1080949
18 -2263.864 4 2.7408303 0.6020890
19 -2263.499 1 0.7297949 0.3929497

comparacion visual de modelos

Efectos marginales

Efectos Marginales Promedio (AME)- Modelo logit
factor AME SE z p lower upper
asistencia_bibliotecaNo -0.1041642 0.0260738 -3.994975 0.0000647 -0.1552679 -0.0530605
asistencia_clubNo -0.1486211 0.0320474 -4.637548 0.0000035 -0.2114328 -0.0858095
asistencia_festivalNo -0.0713066 0.0201327 -3.541822 0.0003974 -0.1107661 -0.0318471
edad -0.0026637 0.0006550 -4.066825 0.0000477 -0.0039474 -0.0013799
sexoMujer 0.0488930 0.0170023 2.875663 0.0040318 0.0155690 0.0822170

Gráfico de efectos marginales