Skip to contents

Calculate the log probability and its gradient of the model given a vector of unconstrained variables.

Usage

grad_log_prob(stan_object, unconstrained_variables, jacobian = TRUE)

# S4 method for class 'StanBase'
grad_log_prob(stan_object, unconstrained_variables, jacobian = TRUE)

Arguments

stan_object

A StanBase object.

unconstrained_variables

Vector of unconstrained variables.

jacobian

Whether to include the Jacobian adjustment.