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.
The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.
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.
The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.

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