BmaSamplesMethods: Other methods for BmaSamples objects

BmaSamples MethodsR Documentation

Other methods for BmaSamples objects

Description

Print the object (print), get fitted values (fitted) and corresponding residuals (residuals).

Usage

## S3 method for class 'BmaSamples'
print(x, ...)
## S3 method for class 'BmaSamples'
fitted(object, ...)
## S3 method for class 'BmaSamples'
residuals(object, ...)

Arguments

x

valid BmaSamples object

object

valid BmaSamples object

...

unused

Author(s)

Daniel Saban\'es Bov\'e

See Also

predict.BmaSamples, summary.BmaSamples

Examples

## construct a BayesMfp object
set.seed(19)

x1 <- rnorm (n=15)
x2 <- rbinom (n=15, size=20, prob=0.5) 
x3 <- rexp (n=15)

y <- rt (n=15, df=2)

test <- BayesMfp (y ~ bfp (x2, max = 4) + uc (x1 + x3), nModels = 200, method="exhaustive")

## now draw samples from the Bayesian model average
testBma <- BmaSamples (test)

## the print method:
testBma

## the fitted method:
fitted(testBma)

## and the corresponding residuals:
residuals(testBma)


bfp documentation built on Nov. 1, 2022, 1:05 a.m.

Related to BmaSamplesMethods in bfp...