sdw: Calculates the standard deviations of all components for a...

Description Usage Arguments Value See Also Examples

Description

sdw calculates weighted standard deviations of a sample using the individual weights of all components.

Usage

1
sdw(xs, corr = cormid)

Arguments

xs

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

corr

function used for correction of weights before sd caclucation. (no correction if codecorr=NULL).

Value

a vector of components' standard deviations

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)
sdw(xs)

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