I have a parameter (let's call it power) with x y coordinates. Now I need to do a 4th order polynomial fit for power, with x and y, equation should includes below terms:
x, y, x^2, x*y, y^2, x^3, x^2*y, x*y^2, y^3, x^4, x^3*y, x^2*y^2, x*y^3, y^4
Is there a function in SAS doing this? I saw some examples about doing polynomial prediction in SAS online, but they usually only fit y = f(x).
Thanks,
PROC GLM will do this
You need to write x^2 as x*x and x*y^3 as x*y*y*y and so on
PROC GLM will do this
You need to write x^2 as x*x and x*y^3 as x*y*y*y and so on
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.