Learn R Programming

ssdtools (version 0.3.7)

ssd_gof: Goodness of Fit

Description

Returns a tbl data frame with the following columns

dist

The distribution name (chr)

aic

Akaike's Information Criterion (dbl)

bic

Bayesian Information Criterion (dbl)

and if the data are non-censored

aicc

Akaike's Information Criterion corrected for sample size (dbl)

and if there are 8 or more samples

ad

Anderson-Darling statistic (dbl)

ks

Kolmogorov-Smirnov statistic (dbl)

cvm

Cramer-von Mises statistic (dbl)

In the case of an object of class fitdists the function also returns

delta

The Information Criterion differences (dbl)

weight

The Information Criterion weights (dbl)

where delta and weight are based on aic for censored data and aicc for non-censored data.

Usage

ssd_gof(x, ...)

# S3 method for fitdist ssd_gof(x, ...)

# S3 method for fitdists ssd_gof(x, ...)

# S3 method for fitdistcens ssd_gof(x, ...)

# S3 method for fitdistscens ssd_gof(x, ...)

Arguments

x

The object.

...

Unused.

Value

A tbl data frame of the gof statistics.

Methods (by class)

  • fitdist: Goodness of Fit

  • fitdists: Goodness of Fit

  • fitdistcens: Goodness of Fit

  • fitdistscens: Goodness of Fit

Examples

Run this code
# NOT RUN {
ssd_gof(boron_lnorm)
ssd_gof(boron_dists)
ssd_gof(boron_lnorm)
ssd_gof(boron_dists)
ssd_gof(fluazinam_lnorm)
ssd_gof(fluazinam_lnorm)
# }

Run the code above in your browser using DataLab