Dear <insert your name here>:

You need to look at the C-level source codes, in R-1.9.1/src/nmath/d*.c.

Andy

> From: F Z
> 
> Hello
> 
> I would like to see the algorithm that R uses to generate 
> density functions 
> for several distributions (i.e. Normal,Weibull, etc).  I tried:
> 
> >dnorm
> function (x, mean = 0, sd = 1, log = FALSE)
> .Internal(dnorm(x, mean, sd, log))
> <environment: namespace:stats>
> 
> How can I see the code used for densities?
> 
> Thanks!

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to