Statalist


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

Re: st: dataset generation


From   Tirthankar Chakravarty <[email protected]>
To   [email protected]
Subject   Re: st: dataset generation
Date   Sun, 24 May 2009 08:37:00 +0100

<>
<>

This is for Stata 10 and assuming you want normally distributed random
variables.

/* begin */
clear*
set seed 12345
set obs 20
g var1 = rnormal(15, 4)
g var2 = rnormal(18, 6)
summ
/* end */

T

On Sun, May 24, 2009 at 8:15 AM, Nikolaos Pandis <[email protected]> wrote:
> Hi,
>
> I would like to ask for help in the following:
>
> I would like to generate a small dataset with  2 columns:
> column 1: observations 20, mean= 15, sd= 4
> column 2: observations 20, mean=18, sd=6
>
> How would I do that?
>
> Many thanks in advance.
>
> Nick
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>



-- 
To every ω-consistent recursive class κ of formulae there correspond
recursive class signs r, such that neither v Gen r nor Neg(v Gen r)
belongs to Flg(κ) (where v is the free variable of r).

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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