Reputation: 21
Is there any function for 2nd degree multivariate polynomial regression in R? Or if not the how to do this in MATLAB.
Upvotes: 0
Views: 293
Reputation: 1654
You can use poly
to get polynomials inside the lm
function.
lm(dv ~ poly(iv, 2))
Upvotes: 1