qq_interpolation {scpoisson}R Documentation

Paired quantile after interpolation between two samples

Description

This function returns a data frame with paired quantiles in two samples after interpolation.

Usage

qq_interpolation(dfp, dfq, sample1, sample2)

Arguments

dfp

A data frame generated from function new_quantile() based on a specific distribution.

dfq

Another data frame generated from function new_quantile() based on a specific distribution.

sample1

A character to denote sample name of distribution used to generate dfp.

sample2

A character to denote sample name of distribution used to generate dfq.

Details

This is a function for quantile interpolation of two samples. For each unique quantile value that has original data point in one sample but no corresponding original data point in another sample, apply a linear interpolation. So the common quantile values after interpolation should have unique points the same as unique quantile points from either sample.

Value

A data frame contains corresponding probability from cumulative distribution function (CDF), corresponding quantiles from the first sample (dfp), and corresponding quantiles from the second sample (dfq).


[Package scpoisson version 0.0.1 Index]