model_matrix {bayesbr}R Documentation

Model Matrix/Frame with All Variables for bayesbr Objects

Description

The function receives all variables and their respective names, and concatenates them in a matrix.

Usage

model_matrix(object,...)

Arguments

object

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

...

further arguments passed to or from other methods.

Value

A matrix or Frame containing all variables in the model and their names used as column names.

See Also

values,bayesbr

Examples

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

bbr = bayesbr(siri ~ wrist +I(age/100)|chest, data = bodyfat,
             iter = 100)
model_matrix(bbr)

model_frame(bbr)

[Package bayesbr version 0.0.1.0 Index]