Learn R Programming

probhat (version 0.4.1)

63_probability_matrices: Bivariate Density/etc Matrices

Description

Convenience function to construct an S4 object representing a bivariate density/etc matrix from a bivariate PDF/CDF.

Unlike other objects in the package, you're welcome to access the slots.

Usage

ph4.BVMatrix (sf, xlim, ylim, …, n=10)

Arguments

sf

A suitable function object. (Here, this refers to a bivariate PDF/CDF).

xlim, ylim

Numeric length two vectors, giving the evaluation ranges.

n

Integer vector of length one or two, giving the number of points, in each x and y direction.

Ignored.

Value

An S4 object with three slots, fv (a matrix), x (x evaluation points) and y (y evaluation points).

Each row in fv, corresponds to one x value, and each column to one y value.

References

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

Examples

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

cfh2 <- pdfmv.cks (trees2 [,-2])
ph4.BVMatrix (cfh2)
# }

Run the code above in your browser using DataLab