Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Sampling from a uniform distribution - suggestion


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Sampling from a uniform distribution - suggestion
Date   Wed, 20 Jun 2007 20:49:11 +0100 (BST)

--- [email protected] wrote:
> However, due to empirical observations from our laboratory
> experiments (to produce a more realistic dataset), I have interest in
> adding one observation on the interval [2000, 3000] after 5 
> observations on the interval [10, 60]. 

set obs 1000
gen random = uniform()*1000 + 2000 in 1/167
replace random = uniform()*50 + 10 in 198/1000


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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