BookmarkSubscribeRSS Feed
shahd
Quartz | Level 8

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;

1 REPLY 1
Kurt_Bremser
Super User

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. 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 679 views
  • 0 likes
  • 2 in conversation