Biemcdf {Emcdf}R Documentation

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.

Details

This is an optimization for bivariate data.

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.

Examples

n = 10^2
set.seed(123)
x = rnorm(n)
y = rnorm(n)
data = cbind(x, y)
Biemcdf(data)


[Package Emcdf version 0.1.2 Index]