BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
FreelanceReinh
Jade | Level 19

Hi @Ksharp,

 

Thanks for rejoining the discussion. As far as I've understood, it's just about assigning observations (8 in the example, but presumably many more in reality) to 4 time slots (Week1, Week2, Week3, Week4). One variable (labelled "Total Samples" in the example) contains a number (the sum of ScoreA, ScoreB, etc.). The optimality criterion for the assignment is to achieve as similar totals of those numbers in the four time slots as possible. A precise definition of the criterion is pending. In the example the totals for Week1 - Week4 are 180, 170, 210 and 110, respectively.

FreelanceReinh
Jade | Level 19

Yes, very similar to that one. Here, we have only a single variable, not three, with values to be summed within the groups. So, we might be very close to a solution already (requiring either SAS/OR or SAS/IML, though).

Ksharp
Super User

I can do that by IML . But OP should post another question at OR forum.

RobPratt is there . He could give some OR code .

FreelanceReinh
Jade | Level 19

Unfortunately, they don't have a SAS/OR license. Not sure about a SAS/IML license (answer to question 4 is pending). I know that IML is included in SAS UE, but only for learning purposes, I guess.

Ksharp
Super User
hashexp:20,multidata:'y' =======>> hashexp:20,multidata : 'y'
Ksharp
Super User
hashexp:20,multidata:'y' =======>> hashexp:20,.... : 'y'

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
  • 51 replies
  • 3127 views
  • 6 likes
  • 6 in conversation