W2.sn {GOFSN}R Documentation

Observed Kolmogorov-Smirnov statistic W2 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 W2.quantiles.

Usage

 W2.sn(data) 

Arguments

data a numeric vector with the observed data

Details

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

Value

x a numeric value with the observed stadistic W2 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(W2.quantiles)
W2.sn(data)

[Package GOFSN version 1.0 Index]