additive_summary.Rd
Compute posterior additive summary
A gam fomula for the additive summary to be computed. Should be in the form of fhat ~ s(x1) + s(x2) + .... See ?mgcv::formula.gam
N NMC matrix of posterior draws of the function f, where N is the number of observations and NMC is the number of Monte Carlo posterior samples
A point estimate (posterior mean) for the function f
The dataframe from which the summary will be computed. This should include all the inputs of f
The function will return the alpha/2 and 1-alpha/2 credible intervals for the summary.
If TRUE, the function will compute the summary on a grid, specifically for quantiles of the covariates as specified in quants, of the data rather than for the whole dataset
The quantiles of the covariates in df on which to compute the summary when fast=TRUE
If TRUE, the function will print out the progress of summary computation
If TRUE, the function will of the design matrix for the summary
A tag for the dataframe of the summary
This function computes the point estimate and credible intervals for the summary of the function f. At a minimum, the user must specify the form of the summary, a matrix of posterior draws of f, and the dataframe which contains the inputs of f