This function returns a data frame with paired quantiles in two samples after interpolation.
qq_interpolation(dfp, dfq, sample1, sample2)
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
).
A data frame generated from function new_quantile() based on a specific distribution.
Another data frame generated from function new_quantile() based on a specific distribution.
A character to denote sample name of distribution used to generate dfp
.
A character to denote sample name of distribution used to generate dfq
.
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.