mnrfit : how to include interaction terms ?
Mostrar comentarios más antiguos
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 comentarios
dpb
el 20 de Ag. de 2013
I've not used it, but the doc seems to indicate that all you needs must do is use the 'interactions', 'on' optional input and it handles the interaction terms internally automagically. I'd at least give that a go w/ your data and see if it doesn't satisfy first...
laurie
el 21 de Ag. de 2013
laurie
el 21 de Ag. de 2013
laurie
el 21 de Ag. de 2013
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Gaussian Process Regression en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!