F.2nd.deriv: Calculate the Hessian Matrix

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Compute numeric 2nd derivative (Hessian) of the function FUN()

Usage

1

Arguments

pt

Vector input to FUN.

FUN

Name of a function to evaluate. Must return a scalar when FUN(pt) is called.

...

Optional Items to FUN()

Details

This function is sourced by the siteocc function.

Value

Returns the Hessian Matrix of the input function.

Author(s)

Fawn Hornsby, Ryan Nielson, and Trent McDonald www.west-inc.com

Maintainer: Fawn Hornsby fhornsby@west-inc.com

References

Casella, G., and Berger, R. L. (2002). Statistical inference, Duxbury Press.

See Also

weta.data
siteocc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
F.test <- function(x){
    3*x[1]^3 + x[1]^2*x[2]^2 + x[2]^3 + x[1]^2*x[3]^4
}
F.2nd.deriv( c(2,3,4), F.test )

# Another Example using siteocc function to get standard errors.
data(weta.data) 
	
fit1 <- siteocc(~1, ~1, histories=weta.data$detection.histories) 
print(fit1)

pom documentation built on May 2, 2019, 9:33 a.m.

Related to F.2nd.deriv in pom...