wtsamp: Constructor for class 'wtsamp'

Description Usage Arguments Value See Also

Description

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.

Usage

1
wtsamp(x, cumm = NULL, indiv = NULL)

Arguments

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.

Value

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)

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.