How to calculate regression with dummy variables?
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I am trying to use 2nd degree polynomial regression with dummy variables. Which function should I use? Thanks for any help!
0 commentaires
Réponse acceptée
the cyclist
le 17 Juil 2018
Modifié(e) : the cyclist
le 17 Juil 2018
2 commentaires
the cyclist
le 17 Juil 2018
Modifié(e) : the cyclist
le 17 Juil 2018
Do you mean that you have polynomials for your independent variables, like
y = a + b*x + c*x^2
That is a linear model. "Linear" refers to the coefficients, not the powers (or whatever) of the variables.
On the other hand, something like
y = a + x^b
is nonlinear in the coefficient. Yes, you would need fitnlm for something like that.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Regression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!