calculate.residuals {OutSeekR} | R Documentation |
Calculate residuals
Description
Calculate residuals between quantiles of the input and quantiles of one of four distributions: normal, log-normal, exponential, or gamma.
Usage
calculate.residuals(x, distribution)
Arguments
x |
A numeric vector. |
distribution |
A number corresponding to the optimal distribution of
|
Value
A numeric vector of the same length as x
. Names are not retained.
Examples
# 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
);
[Package OutSeekR version 1.0.0 Index]