Statalist The Stata Listserver


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

st: R: RE: how to cap an uniform() distribution


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
Subject   st: R: RE: how to cap an uniform() distribution
Date   Tue, 29 May 2007 18:43:20 +0200

Dear Maarten,

thanks a lot for Your usual Kindness and for Your hints.

Kind Regards,

Carlo

-----Messaggio originale-----
Da: [email protected]
[mailto:[email protected]] Per conto di Maarten Buis
Inviato: marted� 29 maggio 2007 17.28
A: [email protected]
Oggetto: st: RE: how to cap an uniform() distribution

--- Carlo Lazzaro wrote:
> I would like to generate a sample of 16,970 random values within a .6923-1
> range (extremes included)with Stata SE 9/2.

set obs 16970 
gen draw = uniform()*.3077 + .6923

Hope this helps,
Maarten

-----------------------------------------
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/
-----------------------------------------



*
*   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/


*
*   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