Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: 2 Prof. Nick


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: 2 Prof. Nick
Date   Tue, 4 Mar 2003 10:34:14 -0000

Lee Chuntao
> 
> therotically we can learn everything from the manual.
> in this regard, the list is needless
> 
> i think the answer of the type nick gave me should be band.
> 1 can answer my question in detail, or don't bother to answer.
> 
> actually i have written the following code to generate the 
> bell curve, i
> just don't know if there are short ways:
> 
> 
> clear
> set obs 1000
> gen t = (uniform()-.5)*7
> gen x = sqrt(2*_pi)*exp(-t^2/2)
> sort t
> gr x t, c(l) symbol(i) pen(6)
> 
> i am afraid that someone who always answer questions 
> without detail is 2
> rude
> 

I'd let others comment if they so wish on issues of fact, of 
principle and indeed of etiquette raised here. 

In terms of your specific solution, 

. range t -3.5 3.5 

is an alternative to the generation of random 
numbers while -normden()- is a built-in function 
for the normal density. 

Nick 
[email protected] 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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