var_aug: Augmented variance

View source: R/n2.R

var_augR Documentation

Augmented variance

Description

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

Usage

var_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 variance

Author(s)

David Gerard

Examples

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


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