Learn R Programming

probhat (version 0.3.1)

71_multivariate_probabilities: Multivariate Probabilities

Description

Compute probabilities, from multivariate CDFs.

Usage

probmv (sf, a, b)

Arguments

sf

A cdfmv.cks or cdfmvc.cks object.

a, b

Numeric vectors (or matrices) of lower and upper limits, corresponding to each variable. If they're matrices, then each row defines the limits for one region and each column defines the limits for one variable.

Value

A single numeric value (if a and b are both standard vectors) and a numeric vector (if either a or b are matrices).

Details

Refer to the vignette for more information.

References

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

See Also

cdfmv.cks, cdfmvc.cks

ph.mean moment

rng

quartiles, ntiles, ph.median, ph.quantile ph.mode, ph.modes\

Examples

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

cFh3 <- cdfmv.cks (trees)

q <- matrix (c (
    22, 24,    #height in 22 to 24
    28, 38,    #girth  in 28 to 38
    0.55, 1.05 #volume in 0.55 to 1.05
    ),, 2, byrow=TRUE, dimnames = list (colnames (trees), c ("a", "b") ) )

probmv (cFh3, q [,1], q [,2])
# }

Run the code above in your browser using DataLab