Learn R Programming

bayesGAM (version 0.0.2)

getStanResults: Returns the stanfit object generated by rstan

Description

Contains the full content of the stanfit object

Usage

getStanResults(object)

# S4 method for bayesGAMfit getStanResults(object)

Arguments

object

Object of type bayesGAMfit returned from bayesGAM

Value

Contents of stanfit results

Examples

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

Run the code above in your browser using DataLab