The R Project SVN R

Rev

Rev 59039 | Rev 72321 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61160
Line 34... Line 34...
34
  the derivatives of the value with respect to the variables listed in
34
  the derivatives of the value with respect to the variables listed in
35
  \code{theta}.
35
  \code{theta}.
36
}
36
}
37
\author{Saikat DebRoy \email{saikat@stat.wisc.edu}}
37
\author{Saikat DebRoy \email{saikat@stat.wisc.edu}}
38
\examples{
38
\examples{
39
\testonly{od <- options(digits=4)}
39
\testonly{od <- options(digits = 4)}
40
myenv <- new.env()
40
myenv <- new.env()
41
assign("mean", 0., envir = myenv)
41
assign("mean", 0., envir = myenv)
42
assign("sd", 1., envir = myenv)
42
assign("sd", 1., envir = myenv)
43
assign("x", seq(-3., 3., len = 31), envir = myenv)
43
assign("x", seq(-3., 3., len = 31), envir = myenv)
44
numericDeriv(quote(pnorm(x, mean, sd)), c("mean", "sd"), myenv)
44
numericDeriv(quote(pnorm(x, mean, sd)), c("mean", "sd"), myenv)