jueves, 12 de diciembre de 2013 7:23
Sistema SAS Procedimiento LOGISTIC
Finally, the following statements refit the previously selected model, except that reference coding is used for the CLASS variables instead of effect coding. The ODDSRATIO statements compute the odds ratios for the covariates. Two CONTRAST statements are specified, and provide another method of producing the odds ratios. The contrast labeled ’Pairwise’ specifies three rows in the contrast matrix, L, for all the pairwise comparisons between the three levels of Treatment. The contrast labeled ’Female vs Male’ compares female to male patients. The option ESTIMATE=EXP is specified in both CONTRAST statements to exponentiate the estimates of . With the given specification of contrast coefficients, the first row of the ’Pairwise’ CONTRAST statement corresponds to the odds ratio of A versus P, the second row corresponds to B versus P, and the third row corresponds to A versus B. There is only one row in the ’Female vs Male’ CONTRAST statement, and it corresponds to the odds ratio comparing female to male patients.
ods graphics on; proc logistic data=Neuralgia plots(only)=(oddsratio(range=clip)); class Treatment Sex /param=ref; model Pain= Treatment Sex Age; oddsratio Treatment; oddsratio Sex; oddsratio Age; contrast 'Pairwise' Treatment 1 0, Treatment 0 1, Treatment 1 -1 / estimate=exp; contrast 'Female vs Male' Sex 1 / estimate=exp; effectplot / at(Sex=all) noobs; effectplot slicefit(sliceby=Sex plotby=Treatment) / noobs; run; ods graphics off;
Información del modelo Conjunto de datos Variable de respuesta Número de niveles de respuesta Modelo Técnica de optimización Número de observaciones leí Número de observaciones usa Perfil de respuesta Valor ordenado 1 2 Pain No Yes Frecuencia total 35 25 WORK.NEURALGIA Pain 2 logit binario Puntuación de Fisher 60 60
La probabilidad modelada es Pain='No'.
7358 25.6928 5.598 81.0001 0.6611 14.767 69.239 48.6314 Pr > ChiSq 0.5666 DF 4 4 4 Pr > ChiSq <.0057 .3013 7. Estadístico de ajuste del modelo Criterio Sólo términos independientes 83.0213 0.503 85.Información de nivel de clase Clase Treatment Valor A B P Sex F M Diseño de variables 1 0 0 1 0 0 1 0 Estado de convergencia del modelo Criterio de convergencia (GCONV=1E-8) satisfecho.767 AIC SC -2 LOG L Probar hipótesis nula global: BETA=0 Test Ratio de verosim Puntuación Wald Tipo 3 Análisis de efectos Efecto Treatment Sex Age DF 2 1 1 Chi-cuadrado de Wald 12.0057 Chi-cuadrado 32.0018 0.503 Términos independientes y Variables adicionales 58.0001 <.
0057 Asociación de probabilidades predichas y respuestas observadas Concordancia de porcentaje Discordancia de porcentaje Porcentaje ligado Pares Estimadores de ratio de probabilidad e intervalos de confianza de Wald Etiqueta Treatment A vs B Treatment A vs P Treatment B vs P Sex F vs M Age Estimador 0.578 24.0132 0.926 90.3013 7.816 0.121 383.7920 0.295 4.8375 10.Análisis del estimador de máxima verosimilitud Parámetro DF Estimador Error Chiestándar cuadrado de Wald 15.528 6.811 Gamma Tau-a c 0.0135 1.312 0.1339 0.4056 1.767 95% Límites de confianza 0.262 29.2650 6.0010 0.589 175.093 3.1 0.022 41.0959 6.0213 0.636 3.0017 0.1790 3.3 9.906 .194 0.8669 3.6314 Pr > ChiSq Intercept Treatment Treatment Sex Age A B F 1 1 1 1 1 0.7264 1.1357 9.8006 5.401 0.8235 -0.248 0.500 1.6 875 D de Somers 0.
0213 .3013 Pr > ChiSq 0.0018 0.6928 5.Resultados del test de contraste Contraste Pairwise Female vs Male DF 2 1 Chi-cuadrado de Wald 12.
0010 0.4998 0.0877 0.Estimació n de contraste y resultado s de prueba por fila Contraste Tip o Fil a Estimado Error Alfa Límites r estánda de r confianz a 24.3116 175.0 5 0.8375 10.5387 4.5567 0.3 3.3473 0.0017 0.0213 Female vs EXP 1 Male .9053 0.3013 Pr > ChiS q Pairwise Pairwise Pairwise EXP 1 EXP 2 EXP 3 0.0932 1.3455 5.2951 4.8006 0.5784 6.0 5 47.0218 41.0 5 0.0 5 3.1937 24.5889 29.5284 0.247 6 Chicuadrad o de Wald 9.1 383.
.
htm#IDX50 .Insertado desde <file://C:\Users\jupdiaz\AppData\Local\Temp\SAS Temporary Files\_TD8784_JULIO_\sashtml.