W2.sn {GOFSN} | R Documentation |
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
.
W2.sn(data)
data |
a numeric vector with the observed data |
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.
x |
a numeric value with the observed stadistic W2 and the p-value associated. |
Veronica Paton Romero, Universidad Rey Juan Carlos, Spain v.paton@alumnos.urjc.es
Cabras and Castellanos (2008) Default Bayesian goodness-of-fit tests for the skew-normal model.
data(ais, package="sn") attach(ais) data=bmi data(prior.lambda) data(W2.quantiles) W2.sn(data)