Description Usage Arguments Value Author(s) Examples
This function calculates the outlier-robust weighted variance in presence of outliers. A kernel weight function has been used behind this function.
1 | weightedVar(x, b)
|
x |
a numerical vector of metabolomic measurements. |
b |
value of tuning parameter. Default value is 0.25. |
Computed the weighted variance.
Nishith Kumar <nk.bru09@gmail.com>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.