Skip to contents

A wrapper around mlpack::bayesian_linear_regression() that allows passing a formula.

Usage

linear_regression_bayesian(
  formula = NULL,
  data = NULL,
  center = FALSE,
  scale = FALSE,
  x = NULL,
  y = NULL
)

Arguments

formula

A formula.

data

A data.frame.

center

Logical; if enabled, centers the data and fits the intercept.

scale

Logical; if enabled, scales each feature by their standard deviations.

x

Design matrix.

y

Response matrix.

Value

An object of class baritsu_blr.