ks.sn {GOFSN}R Documentation

Observed Kolmogorov-Smirnov statistic D and aproximate prior predictive p-value

Description

This function calculates the Kolmogorov-Smirnov statistic in an observed data set and approximate the prior predictive p-value comparing the statistic with the approximated quantiles contained in D.quantiles.

Usage

 ks.sn(data) 

Arguments

data a numeric vector with the observed data

Details

First, this function calculates the statistic D on the observed data, after this value is compared with the appropiate row of the matrix D.quantiles that provides critical quantiles of the prior predictive distribution m(t) for the EDF stadistic D and different sample sizes.

Value

x a numeric value with the observed stadistic D and the p-value associated.

Author(s)

Veronica Paton Romero, Universidad Rey Juan Carlos, Spain v.paton@alumnos.urjc.es

References

Cabras and Castellanos (2008) Default Bayesian goodness-of-fit tests for the skew-normal model.

See Also

W2.sn

Examples

data(ais, package="sn")
attach(ais)
data=bmi
data(prior.lambda)
data(D.quantiles)
ks.sn(data)

[Package GOFSN version 1.0 Index]