QuadApprox: QuadApprox function

Description Usage Arguments Value

View source: R/calibratemcmc.R

Description

A function to compute the second derivative of a function (of several real variables) using a quadratic approximation on a grid of points defined by the list argRanges. Also returns the local maximum.

Usage

1
QuadApprox(fun, npts, argRanges, plot = FALSE, ...)

Arguments

fun

a function

npts

integer number of points in each direction

argRanges

a list of ranges on which to construct the grid for each parameter

plot

whether to plot the quadratic approximation of the posterior (for two-dimensional parameters only)

...

other arguments to be passed to fun

Value

a 2 by 2 matrix containing the curvature at the maximum and the (x,y) value at which the maximum occurs


spatsurv documentation built on May 22, 2018, 5:09 p.m.