npst-package: npst

Description Details Author(s) References Examples

Description

Package 'npst' generalizes Hewitt's (1971) test for seasonality and Rogerson's (1996) extension based on Monte-Carlo simulation.

Details

Package: npst
Type: Package
Version: 1.6
Date: 2011-08-26
License: GPL-2
LazyLoad: yes

Author(s)

Roland Rau

Maintainer: Roland Rau <[email protected]>

References

EDWARDS, J.H. (1961): The recognition and estimation of cyclic trends. Annals of Human Genetics 25:83-86

HEWITT, David and MILNER, Jean and CSIMA, Adele and PAKULA (1971): On Edwards' Criterion of Seasonality and a Non-Parametric Alternative. British Journal of Preventive Social Medicine 25:174-176

ROGERSON, Peter A. (1996): A Generalization of Hewitt's Test for Seasonality. International Journal of Epidemiology 25:644-648

WALTER, S.D. (1980): Exact significance levels for Hewitt's test for seasonality Journal of Epidemiology and Community Health 34:147–149

Examples

1
2
3
npst(indata=c(1:6, 12:7), peak=6, repts=100000,
  whole.distribution=FALSE, siglevels=c(0.01, 0.05, 0.1),
  PARALLEL=FALSE)

Example output

$maximum.rank.sum
[1] 57

$observed
[1] 57

$observed.p.value
[1] 0.01312

$critical.values
  Max.Rank.Sum p.values
1           57  0.01312
2           56  0.02551
3           55  0.04916
4           54  0.07987
5           53  0.12744
6           52  0.18946

npst documentation built on May 30, 2017, 1:13 a.m.