calc_diff_vector_gam(
m,
newdata,
ci = 0.95,
use_relative_diff = FALSE,
method = "delta",
nrep = 1000
)
model object
data.frame nrow >= 2 defining points to compare to the first row in the data frame
range of confidence interval
provide estimates as a relative difference, otherwise presented as an absolute difference
Selects which method is used to estimate confidence intervals and expectation. Can be one of the following:
"delta"Implements delta approximation.
"posterior"Implements posterior sampling. Use nrep
to specify number of bootstrap samples
"bootstrap"Implements simple bootstrap. Use nrep
to specify number of bootstrap samples
"efron bootstrap"Implements Efron bootstrap. Use nrep
to specify number of bootstrap samples
number of samples used for posterior sampling. Only used if use_post
is TRUE
list