Shashank Shekhar
Shashank Shekhar

Reputation: 21

2nd Degree Multivariate Polynomial Regression in R

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

Answers (1)

jkd
jkd

Reputation: 1654

You can use poly to get polynomials inside the lm function.

lm(dv ~ poly(iv, 2))

Upvotes: 1

Related Questions