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. 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 482 views
  • 0 likes
  • 2 in conversation