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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 51 replies
  • 2376 views
  • 6 likes
  • 6 in conversation