stepwise logistic regression using statistics toolbox
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Boyi Jiang 2015
am 14 Aug. 2015
Kommentiert: the cyclist
am 15 Aug. 2015
The response y in "stepwiseglm" has to be one column vector?
I found that the response y in "glmfit" can be two column matrix with the first column indicating the number of successes for each observation and the second column indicating the number of trials for each observation.
My response y is in format [successes; num of trials] and I want to use "stepwiseglm". How can I do that? Thank you so much!
Boyi
0 Kommentare
Akzeptierte Antwort
the cyclist
am 14 Aug. 2015
Bearbeitet: the cyclist
am 14 Aug. 2015
You can specify the response variable y as a two-column vector, just as you did in glmfit. You must also then specify a binomial distribution, by adding the name-value pair like this ...
stepwiseglm(...,'Distribution','Binomial')
2 Kommentare
the cyclist
am 15 Aug. 2015
I don't know. You might want to post this as a new question, to get more visibility.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!