Statalist


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

RE: st: normal distributions


From   "Steichen, Thomas J." <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: normal distributions
Date   Fri, 20 Mar 2009 16:27:13 -0400

Rewrite your command as follows:
From: generate rn=rnormal (0,9)
To:   generate rn=rnormal(0,9)

And it will work.

If you are starting from an empty dataset be sure to
   set obs 100
first.

-----------------------------------
Thomas J. Steichen
[email protected]
-----------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Gates
Sent: Friday, March 20, 2009 3:45 PM
To: [email protected]
Subject: Re: st: normal distributions

that works

On Thu, 2009-03-19 at 11:13 -0600, Rodrigo Briceño wrote:
> Dear all. Thanks for providing me some useful references for making tables.
> I would like to know if there is a function similar to this that I
> found in R: norm <- rnorm(100, 2, 5)
> The trick is to generate a variable that contains 100 values with are
> normal distributed with mean 2 and stdev 5.
>
> I found that rnormal is a function in Stata, but I am not sure about
> the way to write the sintax to produce that outcome. I tried with:
> generate rn=rnormal (0,9) but a message telling me rnormal is not
> found appeared.
>
> I looked into FAQ but there are no related issues...
>
> Thanks!
>
>
--

*
*   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/

CONFIDENTIALITY  NOTE:  This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful.

*
*   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