randwtgen: Creates a random number generator according to a weighted...

Description Usage Arguments Value See Also

Description

randwtgen returns a function wchich produces random samples with the distribution of a prescribed mixture component. The distribution is estimated by a weighted sample.

Usage

1

Arguments

xs

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

Value

a function f(m,n,delta). The function generates a sample of size n with the distribution of the m-th component of the mixture. delta is the blurring parameter.

If delta=0 the generated sample contains values from xs$x0 sampled with probabilities given by the m-th column of xs$indiv. If delta>0 a random variable uniform on [-delta,delta] is added to each sampled value.

The default value of delta is a half of the minimal distance between xs$x0 points.

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.


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