[R] Code density functions
Liaw, Andy
andy_liaw at merck.com
Wed Jul 7 00:35:24 CEST 2004
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!
More information about the R-help
mailing list