estimate_mean: Estimate the sample mean

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

View source: R/estimate_mean.R

Description

Estimate the sample mean

Usage

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

## Default S3 method:
estimate_mean(x, y, ...)

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

Arguments

x

a vector of values or a formula

y

optional, a grouping vector

...

additional arguments passed to child functions

data

optional location to find formula values

Value

a posterior distribution for the mean

Methods (by class)

See Also

inzposterior

Examples

1
2
3
post <- estimate_mean(rnorm(100, 50, 5))
summary(post)
plot(post)

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