varw: Calculates the variances of all components for a weighted...

Description Usage Arguments Value See Also Examples

Description

varw calculates weighted variances of a sample using the individual weights of all components.

Usage

1
varw(xs)

Arguments

xs

object from class wtsamp containing the sample and weights for components' distributions.

Value

a vector of components' variances

See Also

Maiboroda R., Sugakova O. "Statistics of mixtures with varying concentrations with application to DNA microarray data analysis". Nonparametric statistics (2012) v.24:1, p. 201 - 215.

Examples

1
2
3
4
5
6
set.seed(3)
p <- genunifp(1000,2) # create mixing probabilities
a <- lsweight(p) # calculate minimax weights
# create a weighted sample:
xs <- wtsamp(genormixt(p,c(0,1),c(1,1)),indiv=a)
varw(xs)

RostyslavMaiboroda/mixvconc documentation built on June 12, 2019, 12:34 a.m.