estimate_lm: Estimate a linear regression model

Description Usage Arguments Value Methods (by class) See Also Examples

View source: R/estimate_lm.R

Description

Estimate a linear regression model

Usage

1
2
3
4
5
6
7
estimate_lm(y, ...)

## Default S3 method:
estimate_lm(y, x, data, ...)

## S3 method for class 'formula'
estimate_lm(y, data, ...)

Arguments

y

a vector of response values or a formula

...

additional arguments passed to child functions

x

predictor(s), a matrix

data

a data.frame containing the data

Value

a posterior distribution for the regression parameters

Methods (by class)

See Also

inzposterior

Examples

1
2
3
post <- estimate_lm(Petal.Length ~ Petal.Width, data = iris)
summary(post)
plot(post)

iNZightVIT/iNZightBayes documentation built on Dec. 20, 2021, 5:56 p.m.