Learn R Programming

bivariate (version 0.3.0)

kernel: Kernel Distributions

Description

Probability density functions and cumulative distribution functions resulting from kernel smoothing. Refer to the vignette for better examples.

Usage

kbvpdf (x, y, bw.X, bw.Y)
kbvcdf (x, y, bw.X, bw.Y)

Arguments

x

The x values.

y

The y values.

bw.X

Numeric scalar, giving the X bandwidth.

bw.Y

Numeric scalar, giving the Y bandwidth.

Value

These functions return functions. However, currently they can't be evaluated.

Examples

Run this code
# NOT RUN {
#construct some kernel distributions
#(based on example in KernSmooth package)
data ("geyser", package="MASS")
kbvpdf.f = kbvpdf (geyser$duration, geyser$waiting, 0.7, 7)
kbvcdf.f = kbvcdf (geyser$duration, geyser$waiting, 0.7, 7)
# }

Run the code above in your browser using DataLab