dlcDmc {lazy.stat} | R Documentation |
Distribution of the Weighed Linear Combination of a Dirichlet Variables by Simulation.
dlcDmc(x, pdf_info) plcDmc(x, pdf_info) qlcDmc(p, pdf_info)
x, |
q vector of quantiles satisfying w[1] < x,q < w[length(w)]. |
pdf_info |
a list consisting of the following: |
p |
vector of probabilities. |
n |
# of random numbers to be generated. |
# 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 )