qq_interpolation | R Documentation |
This function returns a data frame with paired quantiles in two samples after interpolation.
qq_interpolation(dfp, dfq, sample1, sample2)
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 |
sample2 |
A character to denote sample name of distribution used to generate |
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.
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
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.