In example 7.20, we showed how to simulate categorical data. But we might anticipate needing to do that frequently. If a SAS function weren’t built in and an equivalent R function not available in a package, we could build them from scratch.SASThe SAS code is particularly tortured, since we must parse the parameter string to extract the table probabilities. We do this with the count and find (
To leave a comment for the author, please follow the link and comment on their blog: SAS and R.