天天看點

logistic regression_醫學統計與R語言:這裡的坑你踩過幾回,有序多分類Logistic回歸(Ordinal Logistic Regression)...

微信公衆号:醫學統計與R語言

簡介

SAS and Minitab parameterize the model in the usual way—the same way any regression model does:

logistic regression_醫學統計與R語言:這裡的坑你踩過幾回,有序多分類Logistic回歸(Ordinal Logistic Regression)...

It makes interpretation difficult though, because those Fijs represent cumulative probabilities.

Fi1 is the probability that Y = 1, the lowest ordered category.Fi2 is the probability that Y ≤ 2, the lowest two ordered categories.Fi3 is the probability that Y ≤ 3, the lowest three ordered categories, and so on.

Each odds ratio (exp(beta)) represents the factor increase in the odds of moving into a lower ordered category for each one-unit increase in X.

In other words, as X gets bigger, a positive beta means higher odds of a lower ordered category.

To make your life just a little easier, SPSS and Stata run the model this way instead:

logistic regression_醫學統計與R語言:這裡的坑你踩過幾回,有序多分類Logistic回歸(Ordinal Logistic Regression)...

See that very important minus sign? It flips the estimation of all the coefficients other than the intercept.

In this version of the model, positive values of beta indicate higher odds of moving to the next higher ordered category for higher values of X.

Mathematical Computation:

https://towardsdatascience.com/implementing-and-interpreting-ordinal-logistic-regression-1ee699274cf5

Syntax

√輸入1:

"rio")
           

√結果1:

'data.frame':    
           

√輸入2:

install.packages("MASS")
           

√結果2:

Call:
           

√輸入3:

√結果3:

Likelihood 
           

√輸入4:

"brant")
           

√結果4:

-------------------------------------------- 
           
Test for Parallel Regression Assumption

√輸入5:

 (ci 
           

√結果5:

.5 %     97
           

√輸入6:

exp(cbind(
           

√結果6:

OR     2
           

√輸入7:

$cato t $SES, hsb
           

√結果7:

[1] 0
           

√輸入8:

"p")
           

√結果8:

√輸入9:

"t value"]),lower.tail = 
           

√結果9:

value    p 
           

√輸入10:

"effects")
           

√結果10:

logistic regression_醫學統計與R語言:這裡的坑你踩過幾回,有序多分類Logistic回歸(Ordinal Logistic Regression)...

醫學統計與R語言:多列分組正态性檢驗

醫學統計與R語言:利用午睡幾分鐘,學習下Population Pyramid

醫學統計與R語言:你的基金标書裡還少這幅圖!

醫學統計與R語言:logsitc回歸校準曲線 Calibration curve

醫學統計與R語言:多分格相關系數(polychoric)多序列相關系數(polyserial)Coefficient Omega

醫學統計與R語言:Tobit回歸中的Marginal effect

醫學統計與R語言:定量變量的無監督離散化( unsupervised discretization)

醫學統計與R語言:Welch's ANOVA and Games-Howell post-hoc test

醫學統計與R語言:配對均值檢驗可視化加label

醫學統計與R語言:線性固定效應模型(Linear fix effect model )

醫學統計與R語言:Tobit回歸模型

函數醫學統計與R語言:随機森林與Logistic預測(randomForest vs Logistic regression)

醫學統計與R語言:多重比較P值的可視化

醫學統計與R語言:惡性良性腫瘤研究中的waterfall plot(瀑布圖)

醫學統計與R語言:多元方差分析與非參數多元方差分析

醫學統計與R語言:使用R語言實作Johnson-Neyman分析

醫學統計與R語言:多層線性模型圖示

醫學統計與R語言:多層線性模型(混合線性模型

醫學統計與R語言:best subset of inputs for the glm famil

醫學統計與R語言:多重線回歸自變量篩選的幾種方法

醫學統計與R語言:關聯規則Apriori算

醫學統計與R語言:列聯表可視化的4種方

醫學統計與R語言:盤它!什麼格式檔案都可

醫學統計與R語言:離群值分析(Outlier Detection

醫學統計與R語言:決策樹CHAI

醫學統計與R語言:主成分分析(PCA)及可視

醫學統計與R語言:可能是最全R語言操作手冊(cheatsheets)

醫學統計與R語言:聽說你還在手動畫三線表!

醫學統計與R語言:合并多個Excel文

醫學統計與R語言:政策效果評價之合成控制

醫學統計與R語言:線性回歸模型假設條件驗證與診斷

醫學統計與R語言:想發表sci就畫這種Bland-Altman Plot

logistic regression_醫學統計與R語言:這裡的坑你踩過幾回,有序多分類Logistic回歸(Ordinal Logistic Regression)...

繼續閱讀