The R Project SVN R

Rev

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

Rev 68948 Rev 72321
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
\dontshow{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)
45
\testonly{options(od)}
45
\dontshow{options(od)}
46
}
46
}
47
\keyword{models}
47
\keyword{models}
48
 
48