blm: Fit the data to a model using bayesian linear regression

Description Usage Arguments Value

Description

This function creates a blm object with the fitted model

Usage

1
blm(formula, data, prior = NULL, alpha = 1, beta, n = 2)

Arguments

formula

the formula for the model to fit

data

the data to fit

prior

the prior distribution, default = NULL, if not a blm object provide values for alpha and n

alpha

the alpha value, only needed if prior isn't provided, default = 1

beta

the beta value

n

the number of parameters in the model including the response, only needed if prior isn't provided, default = 2

Value

an object of class blm with a list containing the call, the fitted posterior, the model, beta and the data.


RandiIP/blm documentation built on May 9, 2019, 9:21 a.m.