Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

RE: st: Adding randomness to a variable

From   Red Owl <>
To   <>
Subject   RE: st: Adding randomness to a variable
Date   Mon, 21 Oct 2013 11:29:22 -0400


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

Owen Gallupe <> 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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index