summary.bayesbr {bayesbr}R Documentation

Summary for bayesbr Objects

Description

A method that receives a list of the bayesbr type and its items and displays the main information of the model, such as the residuals, a table containing statistics on the estimated coefficients and information to evaluate the quality of the model.

Usage

## S3 method for class 'bayesbr'
summary(object,type = c("","quantile","sweighted",
"pearson","ordinary"), prob = 0.95,...)

Arguments

object

an object of the class bayesbr, containing the list returned from the bayesbr function.

type

A character containing the residual type returned by the model among the possibilities. The type of residue can be quantile, sweighted, pearson or ordinary. The default is quantile.

prob

a probability containing the credibility index for the HPD interval for the coefficients of the covariates.

...

further arguments passed to or from other methods.

See Also

bayesbr,residuals.bayesbr,print.bayesbr,predict.bayesbr

Examples

data("bodyfat",package="bayesbr")

bbr = bayesbr(siri ~ age + weight +
              wrist | biceps + forearm,
              data = bodyfat, iter = 100)

summary(bbr)
summary(bbr, type="pearson")
summary(bbr, prob = 0.9)
summary(bbr, prob = 0.99, resid.type="sweighted")

bbr2 = bayesbr(siri ~ age + weight + height +
           wrist | biceps + forearm, data = bodyfat,
           iter = 100,mean_betas = 3,
           variance_betas = 10)

summary(bbr2)
summary(bbr2, type="sweighted")
summary(bbr2, prob = 0.96)
summary(bbr2, prob = 0.95, resid.type="quantile")


[Package bayesbr version 0.0.1.0 Index]