How can I generate probabilities from a logistic regression?

8 ビュー (過去 30 日間)
Ed
Ed 2013 年 10 月 16 日
コメント済み: Ed 2013 年 10 月 16 日
I have 5 continuous variables and I want to generate probabilities for each one in terms of a binary outcome variable. For instance, given a set of cholesterol levels and past 10-year morbidity (binary), how would I generate the probability of dying given a cholesterol of 300? I know logistic and probit regressions can give you a measure of the significance of predictor variables. How I can I generate the probabilities.
Thanks.

回答 (1 件)

Jonathan LeSage
Jonathan LeSage 2013 年 10 月 16 日
If you have the Statistics Toolbox, you can fit a logistic regression with mnrfit function and then estimate probabilities using the mnrval function. Here is a link to an example in the documentation to get you started:
Hope this helps!
  1 件のコメント
Ed
Ed 2013 年 10 月 16 日
Thanks. That helps. I had seen that example before but was thrown by a typo in the example code.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear Regression についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by