Learn R Programming

dampack (version 1.0.2.1000)

predict_ga: Function to compute the preposterior for each of the basis functions of the GAM model.

Description

Function to compute the preposterior for each of the basis functions of the GAM model.

Usage

predict_ga(object, n, n0)

Value

the conditional loss associated with a gam, effective prior sample size, and new sample size

Arguments

object

gam object

n

scalar or vector of new sample size to compute evsi on

n0

scalar or vector of effective prior sample size