summary.bayesbr: Summary for 'bayesbr' Objects

Description Usage Arguments See Also Examples

View source: R/summary.bayesbr.R

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

1
2
3
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
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")

bayesbr documentation built on July 17, 2021, 1:07 a.m.