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