Learn R Programming

LPKsample (version 2.1)

LPT: eLP Transformation

Description

Empirical LP Transformation on the data

Usage

LPT(x, k);
LP.Poly(x, m);

Arguments

x

A column vector of the data

k

An integer, order of LP component for transformation

m

An integer, maximum order of LP component for transformation

Value

A vector containing the elements of \(k\)-th order component of the eLP transformation on \(x\) (LPT); Or a matrix with columns of \(1\) to \(m\)-th order component of the eLP transformation on \(x\) (LP.Poly);

Details

Given a vector of data \(x\), the LPT(x,k) function computes the vector of eLP component of order specified by \(k\) for \(x\). While the LP.Poly(x,m) function computes all components up until \(m\).

References

Mukhopadhyay, S. and Wang, K. (2020), "A Nonparametric Approach to High-dimensional K-sample Comparison Problem", arXiv:1810.01724.

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

Examples

Run this code
# NOT RUN {
##
 x<-runif(10)
 LPT(x,1)
# }

Run the code above in your browser using DataLab