Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ロジスティック回帰を実行しようとしていますがlogistic、Stataのコマンドを使用して係数をORスケールで表示できlogit、同じことをln(OR)スケールで表示できると聞いています。Rに相当するものはありますか?私が使っglmたのですが、出力はln(OR)しかないので、自分で計算する必要があり、どういうわけか計算を間違えるのではないかと心配しています。
logistic
logit
glm
予測.glmのヘルプページを読む必要があります。type="response"を設定します。
ORの計算のみに関心がある場合は、次のように入力します。
exp(coef(fit))
plogis(ロジスティック)とqlogis(ロジット)をお探しですか?例qlogis(0.5)==0、plogis(0)==0.5
plogis
qlogis
qlogis(0.5)==0
plogis(0)==0.5