close







MINITAB解釋Binary Regression




立即點擊


請幫忙解釋MINITAB中BinaryLogisticRegression的所有數據代表意思BinaryLogisticRegression:neweyesversuscputime,ageLinkFunction:LogitResponseInformationVariableValueCountneweyes1161(Event)061Total222LogisticRegressionTable...顯示更多請幫忙解釋MINITAB中BinaryLogisticRegression的所有數據代表意思BinaryLogisticRegression:neweyesversuscputime,ageLinkFunction:LogitResponseInformationVariableValueCountneweyes1161(Event)061Total222LogisticRegressionTableOdds95%CIPredictorCoefSECoefZPRatioLowerUpperConstant-0.2785321.88890-0.150.883cputime1.342570.8594431.560.1183.830.7120.64age0.05622090.8930420.060.9501.060.186.09cputime*age-0.4400880.411154-1.070.2840.640.291.44Log-Likelihood=-123.459Testthatallslopesarezero:G=14.132,DF=3,P-Value=0.003Goodness-of-FitTestsMethodChi-SquareDFPPearson7.3909250.193Deviance7.6186850.179Hosmer-Lemeshow2.9161720.233TableofObservedandExpectedFrequencies:(SeeHosmer-LemeshowTestforthePearsonChi-SquareStatistic)GroupValue1234Total1Obs8488025161Exp10.644.978.826.70Obs142022561Exp11.423.123.23.3Total226810230222





Binary Logistic Regression: neweyes versus cputime, age Link Function: Logit 二元反應變數 neweyes 對 cputime, age 兩解釋變數做 logistic regression, 也就是採用 logit 為 link function, 具體而言, 模型是 ln(p/(1-p)) = β0+β1*cputime+β2*age+β3*cputime*age p = P[neweyes = 1] Response Information Variable Value Count neweyes 1 161 (Event) 0 61 Total 222 反應變數之基本資訊: 變數名稱 neweyes, 值 1 者有 161 筆, 值 0 者有 61 筆, 合計 222筆資料. (neweyes = 1 代表 event 發生) Logistic Regression Table Odds 95% CI Predictor Coef SE Coef Z P Ratio Lower Upper Constant -0.278532 1.88890 -0.15 0.883 cputime 1.34257 0.859443 1.56 0.118 3.83 0.71 20.64 age 0.0562209 0.893042 0.06 0.950 1.06 0.18 6.09 cputime*age -0.440088 0.411154 -1.07 0.284 0.64 0.29 1.44 Logistic regression 軟體輸出報表 常數項: 係數 -0.278532, 標準誤 1.88890, z 值(一般稱 t 值) -0.15, p-值 0.883 變數 cputime, 係數 1.34257, 標準誤 0.85944, z值 1.56, p-值 0.118 (若顯著水準是 0.05, 則此係數不顯著, 即無法推翻 β1=0 之假說.) odds ratio = e^(β1) 的估計值是 3.83, 其95%水準信賴區間是 [0.71,20.64], 包含 1, 表示在95%信賴水準, 也就是顯著水準0.05之下, 單看 cputime 主效應項的話, 似乎它並 不會提高 neweyes = 1 的機率. age 的解讀類似. 不過, 此輸出包含 cputime 與 age 對 neweyes 的交互作用項, 而 此項係數 -0.440088, z 值 -1.07, p-值 0.284, 顯見這項是沒必要加 的. Odds ratio 的 95% 水準信賴區間包含 1 在內, 揭示了類似訊息. Log-Likelihood = -123.459 Test that all slopes are zero: G = 14.132, DF = 3, P-Value = 0.003 模型整體解釋力檢定的 p-值是 0.003, 相當小, 顯示模型是有解釋能 力的, 只是因為模型多了不必要的 cputime*age 項, 以致所有係數都 不顯著. 因此, 應該先把交互作用項重新跑看看結果如何. Goodness-of-Fit Tests Method Chi-Square DF P Pearson 7.39092 5 0.193 Deviance 7.61868 5 0.179 Hosmer-Lemeshow 2.91617 2 0.233 模型的配適度檢定. 三種檢定 p-值都相當高, 高於一般常用的顯著水準, 也就是可以說模型尚能符合資料. Table of Observed and Expected Frequencies: (See Hosmer-Lemeshow Test for the Pearson Chi-Square Statistic) Group Value 1 2 3 4 Total 1 Obs 8 48 80 25 161 Exp 10.6 44.9 78.8 26.7 0 Obs 14 20 22 5 61 Exp 11.4 23.1 23.2 3.3 Total 22 68 102 30 222 這是做 Hosmer-Lemeshow 配合適度檢定的次數表. 不過為什麼是這樣的結果我不清楚.








以上文章來自奇摩知識家,如有侵犯請留言告知


https://tw.answers.yahoo.com/question/index?qid=20130612000015KK01651

AAFD2ED9159ECC62
arrow
arrow

    最美公主 發表在 痞客邦 留言(0) 人氣()