Thanks
I'm glad you got a response that answers your question. You should select the best response (not your own) as The Solution.
After thinking about this problem, I wrote a short article that shows that you can also solve the problem by using a Beta distribution. The problem does not have a unique solution, so you need to add an additional constraint if you want uniqueness.
See the article, "Simulate from a bounded distribution that has a specified mean."
Simulating data with given (raw) moments, like mean -- variance -- covariance ...
Here's how you can do that !
Creating Synthetic Data with SAS/OR
By Jared Erickson on Operations Research with SAS May 17, 2017
https://blogs.sas.com/content/operations/2017/05/17/creating-synthetic-data-sasor/
Koen
I respectfully disagree. That method (constrained optimization) is not a good way to simulate data.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.