derivatives | R Documentation |
Computes the derivative of a smooth term from the posterior of the smooth.
derivatives(
object,
term,
n = 200,
eps = 1e-05,
prob = 0.95,
prob_outer = 0.99,
order = 1,
deriv_posterior = TRUE
)
object |
a |
term |
character; the smooth term for which the derivative is required. |
n |
numeric; the number of points to evaluate the derivative at. |
eps |
numeric; the finite difference. |
prob |
numeric; the density of the posterior summary. |
prob_outer |
numeric; the outer density of the posterior summary. |
order |
integer; the order of the derivative. Only first ( |
deriv_posterior |
return the posterior samples for the derivative as part of the object? |
a curvish
object containing summaries of the posterior
derivative, posterior smooths.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.