Dear Linn,
just a comment, not related to your question, about the use of the
command-uniform-:
-h whatsnew-
update 11aug2008 -----
uniform() has been renamed to runiform() in order to be consistent
with the naming convention of the nonuniform random variate functions.
uniform() continues to work, but is now undocumented.
Joao Lima
2008/11/17 Linn Renée Naper <[email protected]>:
> Hi statalisters
>
> I have a distribution of prices which is normally distributed, somehow skewed to the left. I am working on some manipulations of the prices, and have been adding stochastic elements generated by using the invnorm(uniform())-command in Stata playing around with imposing different standard deviations on the new random variable. However, I'd like to change the price structure so that the new distribution has two peaks (bimodal) instead of just one.
> How do I tell Stata to draw random variables or generate a stochastic variable with a bimodal distribution? Can the rnd-command by Hilde be used?
> As I'd like to "force" the distribution into being bimodal an alternative is maybe to generate two different normal variables and add the values to different parts of the dataset. I'd appreciate some suggestions.
>
> Thanks
> Linn
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
--
-------------------------------
Joao Ricardo Lima
Professor
UFPB-CCA-DCFS
+553138923914
-------------------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/