coefficients | R Documentation |
Method for bayesGAMfit
objects. Extracts the specified quantile of the posterior.
The user may specify all or some of the parameters β, ε, λ, u, sigma, a.
## S4 method for signature 'bayesGAMfit' coefficients( object, params = c("beta", "eps", "lambda", "u", "sigma", "a"), FUN = median ) ## S4 method for signature 'bayesGAMfit' coef( object, params = c("beta", "eps", "lambda", "u", "sigma", "a"), FUN = median )
object |
an object of class |
params |
character vector of the names of parameters to return
|
FUN |
function from which to estimate coefficients. Default is |
Numeric vector of parameter point estimates based on the given prob
, with a default of the median estimate.
require(stats); require(graphics) f <- bayesGAM(weight ~ np(height), data = women, family = gaussian, iter = 500, chains = 1) coef(f, params=c("beta", "eps"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.