weightedVar: Calculation of Outlier-Robust Weighted Variance

Description Usage Arguments Value Author(s) Examples

Description

This function calculates the outlier-robust weighted variance in presence of outliers. A kernel weight function has been used behind this function.

Usage

1

Arguments

x

a numerical vector of metabolomic measurements.

b

value of tuning parameter. Default value is 0.25.

Value

Computed the weighted variance.

Author(s)

Nishith Kumar <nk.bru09@gmail.com>

Examples

1
2
3
4
5
6
7
set.seed(2345)
x<-c(rnorm(100,0,1)) 
x1<-c(rnorm(90,0,1),rnorm(10,50,3)) # contain 10 outliers#
weightedVar(x)
var(x)
weightedVar(x1)
var(x1)

nishithkumarpaul/Rvolcano documentation built on May 19, 2019, 10:49 p.m.