Description Usage Arguments Value Author(s) References Examples

This function runs the entire quantile and distribution comparison, giving LP comeans, LP Fourier coefficients, LPINFOR test statistic, p-value, estimated comparison density with null-band, and intervals where the comparison density is above or below the null band

1 2 |

`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 |

`alpha` |
Alpha-level for confidence bands, default: 0.05 |

`B` |
Number of permutations of the x labels, default: 1000 |

`spar` |
"spar" in "smooth.spline" of upper and lower bounds of confidence bands, default: NA, let smooth.splines function figure it out |

`plot` |
Should plotting be performed, default: TRUE |

`inset` |
Graphical parameter that controls where the color legend is plotted below x-axis, default: -0.2 |

A list containing:

`band` |
y-values of the upper and lower bounds of the confidence band |

`d.hat` |
y-values of the comparison density |

`sparL` |
"spar" value in "smooth.spline" of lower bound of the null band |

`sparU` |
"spar" value in "smooth.spline" of upper bound of the null band |

`out.above` |
Quantile intervals where f1 dominates the pooled distribution |

`out.below` |
Quantile intervals where f0 dominates the pooled distribution |

`LP.comeans.0 ` |
LP comeans, conditioned on X=0 |

`LP.coef.0` |
LP Fourier coefficients, conditioned on X=0 |

`LP.comeans.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 |

David Jungreis

Subhadeep Mukhopadhyay

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

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.