dlcDmc {lazy.stat}R Documentation

Distribution of the Weighed Linear Combination of a Dirichlet Variables by Simulation.

Description

Distribution of the Weighed Linear Combination of a Dirichlet Variables by Simulation.

Usage

dlcDmc(x, pdf_info)

plcDmc(x, pdf_info)

qlcDmc(p, pdf_info)

Arguments

x,

q vector of quantiles satisfying w[1] < x,q < w[length(w)].

pdf_info

a list consisting of the following:
dtable a matrix consisting of the estimated density (ndensity x 3)
where the density in column 2 is normalized to unit sum.
locz1, locnz, locz2, minval, maxval: location of zeros.
This should be created by ldDmc function.

p

vector of probabilities.

n

# of random numbers to be generated.

Examples

# Increase nsample when in real use.
class=1:3
f=c(1,2,1)
alpha0=0.5
res=lcDmc( class, f, alpha0=alpha0, nsample=10000, density=2, ndensity=201
           , smooth=0, print=1, plot=1, simple=1, hdr_prob=0 )
pdf_info=res$pdf_info
# density, probability, quantile
dlcDmc( c(1.5, 2, 2.5 ), pdf_info )
plcDmc( c(1.5, 2, 2.5 ), pdf_info )
qlcDmc( c( 0.25, 0.5, 0.75 ), pdf_info )


[Package lazy.stat version 0.1.4 Index]