Do you have a question? Post it now! No Registration Necessary. Now with pictures!
January 22, 2009, 8:44 pm
rate this thread
to populate them with dynamic data, instead of hard-coded data. I
don't want to use random data, because it winds up looking too
different from what the actual data will actually look like after
The stacked bar charts have 5 sections, which all together will add up
to 100%. An example distribution might be:
1 => 2%
2 => 3%
3 => 50%
4 => 20%
5 => 25%
But I'd like to constrain the data. Typically, 1 and 2 are less than
5%, 3 is below 20%, and the rest is split between 4 and 5 .
Is there a package that someone has written where I can specify these
constraints and get back a sample data that would fit a distribution I
I can probably think of a way to do this using the rand() function,
but I would really like to see the "right" statistical way to do it.