mnrfit : how to include interaction terms ?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I would like to compute a logistic regression on accuracy data (accuracy is 0 or 1).
There are 3 predictors (X1, X2, X3) of accuracy, but i would like to include the interaction terms between those predictors (X1*X2,..., X1*X2*X3) in the model.
How can I achieve this ? I can't figure out how to set up B or parameter values to achieve this. Any ideas ? Should I switch to another function (for example, compute log-likelihood ratios separately then run regstats/regress or something else on them) ? Thanks a lot.
4 Kommentare
Akzeptierte Antwort
the cyclist
am 21 Aug. 2013
I think you may need to use nlinfit() or nlmefit() to do what you need.
3 Kommentare
the cyclist
am 21 Aug. 2013
I have posted some simple example of nlinfit in this forum. Search on "nlinfit" and "cyclist" to find them. I don't have much experience with nlmefit, but you are right that it is somewhat complicated (partly because of its flexibility). There are examples, of course, in the documentation.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Gaussian Process Regression finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!