Skip to content
Prev 22729 / 398502 Next

Random Numbers

At 15:48 17/08/2002 +1200, you wrote:
Well use fitdistr ()

require (mass)
x <- rnorm(30, 4, 1.5)
fitdistr(x,"normal",list(mean=0,sd=1))

result:
     mean         sd    
  3.7126893   1.2748764 
 (0.2327595) (0.1646173)
Warning message: 
NaNs produced in: dnorm(x, mean, sd, log) 
 



Thanks in advance

Bernardo Rangel Tura, MD, MSc
National Institute of Cardiology Laranjeiras
Rio de Janeiro Brazil

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Message-ID: <5.1.0.14.2.20020817080935.009ef400@centroin.com.br>
In-Reply-To: <Pine.SOL.4.21.0208171544070.16355-100000@stat1.stat.auckla nd.ac.nz>