Hi
I need to transform one of the independent variables in my model into exponential form and I wrote this code in sas but it doesn't work
could anyone please help me with this
data new1; set salary;
x7=exp (x7);
run;
proc corr data=new1 plots=matrix(nvar=all nwith=all histogram);
var y x1 x2 x3 x4 x5 x6 exp(x7) x8 x9 x10;
run;
proc reg data=new1 plots(label)=(cooksd dfbetas dffits diagnostics observedbypredicted);
model y x1 x2 x3 x4 x5 x6 exp(x7) x8 x9 x10/alpha=.05 r p clb cli clm stb vif partial influence collinoint collin;
Maxim 2: Read the Log.
Which also means that whenever something "doesn't work", it is a VERY GOOD IDEA to post the log here. Use the {i} button for this, to preserve the formatting of the log.
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.