Learn R Programming

bisque (version 1.0.2)

jac.exp: Jacobian for exponential transform

Description

Let \(X=exp(Y)\) be a transformation of a random variable \(Y\). This function computes the jacobian \(J(x)\) when using the density of \(Y\) to evaluate the density of \(X\) via $$f(x) = f_y(ln(x)) J(x)$$ where $$J(x) = d/dx ln(x).$$

Usage

jac.exp(x, log = TRUE)

Arguments

x

value at which to evaluate \(J(x)\)

log

TRUE to return \(log(J(x))\)

Examples

Run this code
# NOT RUN {
jac.exp(1)

# }

Run the code above in your browser using DataLab