identify.bic.optimal.residuals.distribution {OutSeekR}R Documentation

Identify optimal distribution of residuals

Description

Identify which of four distributions—normal, log-normal, exponential, or gamma—best fits the given vector of residuals according to BIC.

Usage

## S3 method for class 'bic.optimal.residuals.distribution'
identify(x)

Arguments

x

A numeric vector.

Value

A numeric code representing which distribution optimally fits x. Possible values are

Examples

# Generate fake data.
set.seed(1234);
x <- rgamma(
    n = 20,
    shape = 2,
    scale = 2
    );
identify.bic.optimal.residuals.distribution(
    x = x
    );

[Package OutSeekR version 1.0.0 Index]