BookmarkSubscribeRSS Feed
hellohere
Pyrite | Level 9

I have,FOR EACH ROW, Y-values as columns and X-Values are the numeric[100 80 60 40 30 20 10 5] at the column names.

 

How to run PROC REG and save out the SLOPE and INTERCEPT for each?! Thanks.

x=[100 80 60 40 30 20 10 5] always

Y=[453 459 466 472 480 482 486 486] for the first row ... and so on

 

Dataset attached below.

 

I know to to transpose and then proc reg. But that is now what I need. 

 

sc.jpg

1 REPLY 1
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
  • 119 views
  • 0 likes
  • 2 in conversation