Learn R Programming

bcgam (version 1.0)

summary.bcgam: Summarizing bcgam fits

Description

summary method for class "bcgam".

Usage

# S3 method for bcgam
summary(object, ...)

Arguments

object

an object of class "bcgam".

...

further arguments passed to or from other methods.

Value

The function summary.bcgam computes and return a list of summary statistics (estimated mean, standard error, 95% bounds, estimated median) of the fitted bcgam given in object.

Details

All summary statistics are based on the posterior distribution in the bcgam object.

Examples

Run this code
# NOT RUN {
n<-50
x<-(1:n)^{1/3}
z<-as.factor(rbinom(n, 1, 0.6))
y<-x+7*as.numeric(z)+rnorm(n,sd=2) 
bcgam.fit <- bcgam(y~sm.incr(x)+z, nloop=100)
summary(bcgam.fit)
# }

Run the code above in your browser using DataLab