Learn R Programming

bayesbr (version 0.0.1.0)

model_matrix: 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

Run this code
# NOT RUN {
data("bodyfat",package="bayesbr")
# }
# NOT RUN {
bbr = bayesbr(siri ~ wrist +I(age/100)|chest, data = bodyfat,
             iter = 100)
model_matrix(bbr)

model_frame(bbr)
# }

Run the code above in your browser using DataLab