What I'm trying to do is derive the probability of values on the basis of a Poisson function, but by variables in long form, such as would be the group by function in proc sql. The data step has the pdf() function, which can return the Poisson probabilities, but has no group by function.
I'm aware it's possible to do a 'group by' on operators using first. and last. in data step, but surely this wouldn't work for a function like pdf().
There may be procedures that can do this, but I'm unaware of what they are.
Does anyone have any recommendations?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.