newvar: Recurrence Relationship for Sample Variance

Description Usage Arguments Details Value Author(s) See Also

View source: R/newvar.R

Description

This functions updates the sample variance using old sample variance, old mean and new value

Usage

1
newvar(oldvar, n, mu, new)

Arguments

oldvar

a numeric value of old sample variance

n

a numeric value for the number of data including the new data

mu

a numeric value of the old mean

new

a numeric value of the new data point

Details

This function updates the sample variance using recurrence relationship between old mean, old sample variance and the new value.

Value

a numeric value of the updated sample variance

Author(s)

Thevaa Chandereng

See Also

var

new_mean


thevaa/bmiproj documentation built on May 27, 2017, 5:34 a.m.