gensampmixt: Resample form mixture with warying concentrations.

Description Usage Arguments Details Value See Also Examples

Description

gensampmixt generates a sample from the mixture with mixing probabilities p and distributions of components given by the weighted sample xs.

Usage

1
gensampmixt(p, xs)

Arguments

p

matrix (or data frame) of mixing probabilities with rows corresponding to subjects and columns coresponding to the mixture components.

xs

object of class wtsamp with the weighted sample. Defines the mixture components' distribution.

Details

gensampmixt uses randwtgen for sampling from components with the default value of the option delta0.

Value

a vector with the resampled sample.

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.

Maiboroda R. and Kubaichuk O. Asymptotic normality of improved weighted empirical distribution functions. Theor. Probability and Math. Statist. 69 (2004), 95-102

Examples

1
2
3
4
5
6
7
set.seed(3)
p <- genunifp(10,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)
xs<-cormid(xs) # correct the weights
x_resampled<-gensampmixt(p,xs) # resampled data

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