Learn R Programming

bayesGAM (version 0.0.2)

showPrior: Display the priors used in bayesGAM

Description

Prints a list of priors for \(\beta\), \(\lambda\), \(\epsilon\), and \(a\), where applicable.

Usage

showPrior(object, ...)

# S4 method for bayesGAMfit showPrior(object, params = "all")

Arguments

object

Object of type bayesGAMfit generated from bayesGAM

...

Additional arguments for showPrior

params

character vector of the names of parameters to return

  • \(\beta\) beta

  • \(\epsilon\) eps

  • \(\lambda\) lambda

  • \(a] a\)

Value

none

Examples

Run this code
# NOT RUN {
require(stats); require(graphics)
f <- bayesGAM(weight ~ np(height), data = women, 
              family = gaussian, iter = 500, chains = 1)
showPrior(f)
# }

Run the code above in your browser using DataLab