mean_aug: Augmented mean

View source: R/n2.R

mean_augR Documentation

Augmented mean

Description

If wt is an integer, this is mean(c(x, rep(A, wt))). But we generalize it to non-integer wt as well.

Usage

mean_aug(x, A, wt = 1)

Arguments

x

Data

A

Prior value

wt

Weight for A. Don't touch this unless you know what you are doing.

Value

The augmented mean

Author(s)

David Gerard

Examples

mean_aug(c(1, 2, 3), 4, wt = 10)


nisone documentation built on Sept. 8, 2026, 5:08 p.m.