Learn R Programming

probhat (version 0.3.1)

27_distribution_sets: Distribution Sets

Description

Sets of distributions. THESE FUNCTIONS HAVE HAD LIMITED TESTING.

Usage

#categorical sets
#(grouped by a categorical variable)
pdfuv.gset.cks (x, …, group.by)
cdfuv.gset.cks (x, …, group.by)
qfuv.gset.cks (x, …, group.by)
cdfuv.gset.el (x, …, group.by)
qfuv.gset.el (x, …, group.by)

#marginal sets pdfuv.mset.cks (x, …, bw, smoothness=1) cdfuv.mset.cks (x, …, bw, smoothness=1) qfuv.mset.cks (x, …, bw, smoothness=1) cdfuv.mset.el (x, …) qfuv.mset.el (x, …)

Arguments

x

Vector (for categorical sets) or matrix (for marginal sets).

group.by

A character vector, with the same length as x. Or an object which can be coerced to such a vector. If a list, its first element is used.

bw, smoothness

Bandwidth and smoothness parameters, same as pdfuv.cks, except that they can be an m-length vector, where m is the number of variables, equal to number of columns in x.

Other arguments for the corresponding univariate constructor.

Value

A ph3.gset or ph3.mset object.

Details

THESE FUNCTIONS HAVE HAD LIMITED TESTED.

These functions construct distribution set objects, which are lists of probability distributions.

References

Refer to the vignette for an overview, references and better examples.

See Also

Succinct Constructors Discrete Kernel Smoothing, Continuous Kernel Smoothing Categorical Distributions, Empirical-Like Distributions

plot.ph3.gset, plot.ph3.mset

Examples

Run this code
# NOT RUN {
ph.data.prep ()

plot (pdfuv.gset.cks (sepal.length, group.by=species) )
plot (qfuv.mset.el (trees), nr=2, nc=2)
# }

Run the code above in your browser using DataLab