RE: [R] Code density functions

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed 07 Jul 2004 - 08:35:24 EST


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

elev1">> 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!



R-help@stat.math.ethz.ch 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 Received on Wed Jul 07 08:43:49 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:44 EST