Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: Adding randomness to a variable
From
Red Owl <[email protected]>
To
<[email protected]>
Subject
RE: st: Adding randomness to a variable
Date
Mon, 21 Oct 2013 11:29:22 -0400
Owen,
See -help rnormal-. The degree of variation is determined
by the SD in -rnormal(m,sd)- below.
gen var2 = var1 + rnormal(0,.5)
Red Owl
[email protected]
---
Owen Gallupe <[email protected]> wrote:
>> is there any function that allows you to take an existing variable
and add a small degree of randomness to it?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/