MATLAB: Mnrfit : how to include interaction terms

mnrfitregressionStatistics and Machine Learning Toolbox

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.

Best Answer

I think you may need to use nlinfit() or nlmefit() to do what you need.
Related Question