View source: R/identify.bic.optimal.data.distribution.R
identify.bic.optimal.data.distribution | R Documentation |
Identify which of four distributions—normal, log-normal, exponential, or gamma—best fits the given data according to BIC.
## S3 method for class 'bic.optimal.data.distribution'
identify(x)
x |
A numeric vector. |
A numeric code representing which distribution optimally fits x
. Possible values are
1 = normal,
2 = log-normal,
3 = exponential, and
4 = gamma.
# Generate fake data.
set.seed(1234);
x <- rgamma(
n = 20,
shape = 2,
scale = 2
);
identify.bic.optimal.data.distribution(
x = x
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.