LP.XY: A function to compute LP comeans, LP Fourier coefficients,...

Description Usage Arguments Value Author(s) References Examples

View source: R/LP.XY.R

Description

This function computes LP-comeans, LP-Fourier coefficients, LPINFOR test statistic, and the corresponding p-value of for testing equality of two distributions

Usage

1
LP.XY(x,y,m=6,smooth="TRUE",method="BIC")

Arguments

x

Indicator variable denoting group membership

y

Response variable with measured values

m

Number of LP comeans and LP Fourier coefficients to be calculated, default: 6

smooth

If smoothing should be applied, default: TRUE

method

Smoothing method, default: BIC

Value

A list containing:

LP.comean.0

LP comeans, conditioned on X=0

LP.coef.0

LP Fourier coefficients, conditioned on X=0

LP.comean.1

LP comeans, conditioned on X=1

LP.coef.1

LP Fourier coefficients, conditioned on X=1

LPINFOR

Test statistics value

pval

The p-value for testing equality of two distributions F0=F1

Author(s)

Subhadeep Mukhopadhyay

David Jungreis

References

Jungreis, D. and Mukhopadhyay, S. (2018), "Two-Sample Quantile and Distribution Comparisons"

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

Examples

1
2
3
4
x <- c(rep(0,200),rep(1,200))
y <- c(rnorm(200,0,1),rnorm(200,1,1))
L <- LP.XY(x,y)
L$pval

QDComparison documentation built on Oct. 31, 2018, 1:05 a.m.