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]

st: use random values in a calculation

From   Zhi Su <>
To   statalist <>
Subject   st: use random values in a calculation
Date   Fri, 1 Jul 2011 22:46:25 -0400

Dear Statalists,

  I need to generate a set of variables that are som of four variables
v1 v2 v3 v4 multipled by a ratio r1 r2 r3 r4 which are randomly chosen
from (0, 0.05,0.1,0.15,0.2). For example,

How can I use commands to generate these 625 variables?

Thank you!

Zhi Su
348 Holmes Hall
Northeastern University
360 Huntington Avenue
Boston, MA 02115
*   For searches and help try:

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