Saltar al contenido principal
LibreTexts Español

27.2: Crítica y Diagnóstico de Modelos (Sección 26.5)

  • Page ID
    150936
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Una vez que hayamos instalado el modelo, queremos ver algunos diagnósticos para determinar si el modelo realmente se ajusta correctamente. Podemos hacer esto usando la función autoplot () del paquete ggfortify.

    autoplot(lm_result,which=1:2)

    El panel izquierdo de esta gráfica muestra la relación entre los valores predichos (o “ajustados”) y los residuales. Nos gustaría asegurarnos de que no haya una relación clara entre estos dos (como veremos a continuación). El panel derecho muestra una gráfica Q-Q, que nos ayuda a evaluar si los residuos del modelo están distribuidos normalmente. En este caso, se ven razonablemente normales, ya que los puntos no difieren demasiado de la línea unitaria.


    This page titled 27.2: Crítica y Diagnóstico de Modelos (Sección 26.5) is shared under a not declared license and was authored, remixed, and/or curated by Russell A. Poldrack via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.