Statalist


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

RE: AW: st: AW: Hello listers


From   "Lachenbruch, Peter" <Peter.Lachenbruch@oregonstate.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: AW: st: AW: Hello listers
Date   Tue, 13 Oct 2009 08:19:02 -0700

Please do not repeat lengthy previous posts.  You can delete all that
isn't relevant.

Tony

Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Evans Jadotte
Sent: Tuesday, October 13, 2009 7:32 AM
To: statalist@hsphsun2.harvard.edu
Subject: Re: AW: st: AW: Hello listers

Martin Weiss wrote:
> <> 
>
> -cumul- takes given values and forms the cumulative distribution
function.
> These values could be distributed according to any density. -normal-
gives
> you the cumulative of the normal, and -normalden- gives you the
density
> function of the normal.
>
> *************
> clear*
> set obs 10000
>
> gen x=-5+10*runiform()
>
> gen z=normalden(x)
> cumul z, gen(cumz)
>
> line z x, sort name(den, replace) /* 
> */ nodraw
>
> gen y=rnormal()
>
> cumul y, gen(cumy)
>
> line cumy y, sort name(cumul, replace) /* 
> */ nodraw
>
> gr combine den cumul
> *************
>
> Note the -egen, std()- function for your standardization purposes
(such as
> your x and z)...
>
> HTH
> Martin
Many lines deleted
   
Many thanks Martin!

Simple stuff can sometimes make one lose precious time when knowledge is

lacking!

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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index