rob_var: Robust scale estimators based on median absolute deviation

Description Usage Arguments Details Value References

View source: R/scaleEstimators.R

Description

rob_var calculates a variance estimator for the within-sample variance based on two samples.

Usage

1
rob_var(x, y, na.rm = FALSE, type = c("S1", "S2", "S3", "S4"))

Arguments

x

a (non-empty) numeric vector of data values.

y

a (non-empty) numeric vector of data values.

na.rm

logical value indicating whether NA values in x and y should be stripped before the computation proceeds.

type

character that specifies the estimator for the variance, can be "S1", "S2", "S3" and "S4" for; see details for description of the scale estimators.

Details

For definitions of the scale estimators see Fried and Dehling (2011).

Value

An estimate of the pooled variance of the two samples.

References

\insertRef

FriDeh11roburobTests


s-abbas/robTests documentation built on Aug. 28, 2020, 7:24 a.m.