2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

順序ロジステック 平行線検定

Posted at

Rで順序ロジステック回帰をやったときの平行線検定(複数の式の偏回帰係数が等しいかどうかの検定)のやり方がわからなかったが、Rのbrant パッケージのbrant関数で出来るようだ。
以下サンプルコード

library(brant)
library(MASS)

data(survey)
smoke_data <- survey 
smoke_data$Smoke <- ordered(smoke_data$Smoke,levels=c("Never","Occas","Regul","Heavy"))


model1 <- MASS::polr(Smoke ~ Sex + Height, data=smoke_data, Hess=TRUE)
summary(model1)

# 平行線検定
brant(model1)



2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?