View source: R/calculate.residuals.R
calculate.residuals | R Documentation |
Calculate residuals between quantiles of the input and quantiles of one of four distributions: normal, log-normal, exponential, or gamma.
calculate.residuals(x, distribution)
x |
A numeric vector. |
distribution |
A number corresponding to the optimal distribution of
|
A numeric vector of the same length as x
. Names are not retained.
# Generate fake data.
set.seed(1234);
x <- rgamma(
n = 20,
shape = 2,
scale = 2
);
names(x) <- paste(
'Sample',
seq_along(x),
sep = '.'
);
calculate.residuals(
x = x,
distribution = 4
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.