Statalist


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

Re: st: dataset generation


From   Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: dataset generation
Date   Sun, 24 May 2009 10:26:37 +0100

I suppose

help random_number_functions

is a good place to start.

T

On Sun, May 24, 2009 at 9:18 AM, Nikolaos Pandis <npandis@yahoo.com> wrote:
> Dear Tirthankar,
>
> Many tahnks.
>
> What if I would like to generate nont normally disributed data?
>
> I assume I would have to pick up a distribution.
> Would you please direct to right place.
>
> Best wishes,
>
> Nick
>
> --- On Sun, 5/24/09, Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com> wrote:
>
>> From: Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com>
>> Subject: Re: st: dataset generation
>> To: statalist@hsphsun2.harvard.edu
>> Date: Sunday, May 24, 2009, 10:37 AM
>> <>
>> <>
>>
>> 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 <npandis@yahoo.com>
>> 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/
>>
>
>
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index