BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

I have a sas data toto.

==> It contains the variables: V1, V2, ....Vn, W

==> I want to get the rule of W,  I know that W can be

 

From obs = 1 to  u

w= Vi+Vj*Vm+Vg+.....

 

From obs=u+1 to n

w=e*Vp*Vy+Vh

 

.................

.................

 

I am looking for an automatic solution to identify the rules of the variable W for every observation.

 

Thank you

 

 

3 REPLIES 3
Quentin
Super User
It's not clear to me what you want. I suggest you add a sample dataset (maybe with just V1 V2 V3 W, and about 10 observations), and the solution you would want from that dataset.
LineMoon
Lapis Lazuli | Level 10

I want to extract the rules of W by observations

 

 

Quentin
Super User
Sorry, still not clear to me what you mean by that. Again, I think showing some example data and desired result might help.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3 replies
  • 1272 views
  • 0 likes
  • 2 in conversation