[R] D(dnorm...)?

Berton Gunter gunter.berton at gene.com
Wed Jan 25 23:57:33 CET 2006


dnorm() is an internal function, so I don't see how D (or deriv) can do
anything with it symbolically. Am I missing something?

-- Bert
 
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Spencer Graves
> Sent: Wednesday, January 25, 2006 2:43 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] D(dnorm...)?
> 
> 	  Can someone help me understand the following:
> 
>  > D(expression(dnorm(x, mean)), "mean")
> [1] 0
>  > sessionInfo()
> 
> R version 2.2.1, 2005-12-20, i386-pc-mingw32
> 
> attached base packages:
> [1] "methods"   "stats"     "graphics"  "grDevices" "utils"   
>   "datasets"
> [7] "base"
> 
> 	  By my computations, this should be something like 
> ((mean-x)/sd^2)*dnorm(...).
> 
> 	  Thanks for your help.
> 	  Spencer Graves
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list