eLP.poly {QDComparison} | R Documentation |
Given a random sample from X (which can be discrete, continuous, or even mixed), this function computes the empirical LP-basis functions.
eLP.poly(x,m)
x |
The random samples |
m |
Number of basis functions to compute |
LP basis functions
Subhadeep Mukhopadhyay
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.
x <- c(rep(0,200),rep(1,200))
m <- 6
eLP.poly(x,m)