Learn R Programming

Emcdf (version 0.1.2)

Biemcdf: Computes bivariate empirical joint distribution

Description

This function computes empirical joint distribution (joint CDF) table with dynamical programming.

Usage

Biemcdf(data)

Arguments

data

a numeric matrix with two columns.

Value

a matrix of values of empirical joint CDF function, where rows and columns are the sorted variables. Columns are the first variable, and rows are the second variable.

Details

This is an optimization for bivariate data.

Examples

Run this code
# NOT RUN {
n = 10^2
set.seed(123)
x = rnorm(n)
y = rnorm(n)
data = cbind(x, y)
Biemcdf(data)

# }

Run the code above in your browser using DataLab