[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Linn Renée Naper <linn.naper@ecgroup.no> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: from normal to bimodal distribution |

Date |
Mon, 17 Nov 2008 11:22:51 +0100 |

(just tried to make it more "reader-friendly"): 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. -----Opprinnelig melding----- Fra: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] På vegne av Linn Renée Naper Sendt: 17. november 2008 11:10 Til: statalist@hsphsun2.harvard.edu Emne: st: from normal to bimodal distribution 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/ * * 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/

**Follow-Ups**:**st: RE: RE: from normal to bimodal distribution***From:*Linn Renée Naper <linn.naper@ecgroup.no>

**References**:**st: from normal to bimodal distribution***From:*Linn Renée Naper <linn.naper@ecgroup.no>

- Prev by Date:
**st: from normal to bimodal distribution** - Next by Date:
**RE: st: from normal to bimodal distribution** - Previous by thread:
**st: from normal to bimodal distribution** - Next by thread:
**st: RE: RE: from normal to bimodal distribution** - Index(es):

© Copyright 1996–2014 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |