[R] strange results with dmvnorm

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Oct 31 17:42:07 CET 2004


"David Pleydell" <D.R.J.Pleydell at pgr.salford.ac.uk> writes:
> Surely
> the results of dmvnorm should be in the interval 0:1 (or do I just nead a
> holiday?).  

You need a holiday. Consider

  curve(dnorm(x,sd=.25),from=-1,to=1)

The *integral* has to be 1 though.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list