Statalist


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

Re: st: degenerate normal (mild annoyance)


From   vwiggins@stata.com (Vince Wiggins, StataCorp)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: degenerate normal (mild annoyance)
Date   Fri, 21 Aug 2009 11:15:25 -0500

Al Feiveson <alan.h.feiveson@nasa.gov> asks,

> [...] I just noticed that the function -rnormal(mu,sig)- returns all
> missing values when sig = 0. I consider this a bug, since sometimes
> for debugging purposes it is convenient to set a particular variance
> component to zero. In other words, I would want -rnormal(mu,sig) to
> return a variable with all values equal to the `mu' when `sig' = 0.

I agree.

Moreover, the other random-variate generators should be willing to produce
constants when that is implied by the specified parameters.

We will take a look at the random-variate generators and make them tolerant of
these degenerate specifications.  Expect to see the change in a future
executable update.


 
-- Vince 
   vwiggins@stata.com

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