Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'fitdist'
ssd_gof(x, ...)

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

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

## S3 method for class '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

ssd_gof(boron_lnorm)
ssd_gof(boron_dists)
ssd_gof(boron_lnorm)
ssd_gof(boron_dists)
ssd_gof(fluazinam_lnorm)
ssd_gof(fluazinam_lnorm)

ssdtools

Species Sensitivity Distributions

v0.3.3
Apache License (== 2.0) | file LICENSE
Authors
Joe Thorley [aut, cre, ctr] (<https://orcid.org/0000-0002-7683-4592>), Carl Schwarz [aut, ctr], Angeline Tillmanns [ctb], Ali Azizishirazi [ctb], Rebecca Fisher [ctb], David Fox [ctb], Kathleen McTavish [ctb], Heather Thompson [ctb], Andy Teucher [ctb], Emilie Doussantousse [ctb], Stephanie Hazlitt [ctb], Nadine Hussein [ctb], Nan-Hung Hsieh [ctb], Sergio Ibarra Espinosa [ctb], Province of British Columbia [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.