Learn R Programming

QDComparison (version 3.0)

eLP.poly: A function to compute the LP basis functions

Description

Given a random sample from X (which can be discrete, continuous, or even mixed), this function computes the empirical LP-basis functions.

Usage

eLP.poly(x,m)

Arguments

x

The random samples

m

Number of basis functions to compute

Value

LP basis functions

References

Jungreis, D., (2019) "Unification of Continuous, Discrete, and Mixed Distribution Two-Sample Testing with Inferences in the Quantile Domain"

Mukhopadhyay, S. and Parzen, E. (2014), "LP Approach to Statistical Modeling", arXiv:1405.2601.

Examples

Run this code
# NOT RUN {
x <- c(rep(0,200),rep(1,200))
m <- 6
eLP.poly(x,m)
# }

Run the code above in your browser using DataLab