Description Usage Arguments Value See Also
wtsamp
returns an object of S3 class wtsamp
containing a sorted sample and a set of individual
and/or cummulative weights representing distributions
of different components.
1 |
x |
numeric vector containing the sample values. |
cumm |
matrix (or data frame) of cummulative weights of components. |
indiv |
matrix (or data frame) of individual weights of components. |
object of class wtsamp
which contains the
following attributes:
xo
vector of sample values sorted
in the ascending order with -Inf
as the first element.
cumm
matrix of cummulative weigts reordered at the same order as xo with 0 at the first row.
indiv
matrix of individual weigts reordered at the same order as xo.
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)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.