R/jacobian.R

jacobian <-
function (theta) {
    k <- length(theta)
    etheta <- exp(theta)
    mat <- matrix(0, k, k)
    mat[, 1] <- rep(1, k)
    for (i in 2:k)
        mat[i:k, i] <- etheta[i]
    mat
}

Try the JM package in your browser

Any scripts or data that you put into this service are public.

JM documentation built on Aug. 8, 2022, 5:09 p.m.