Learn R Programming

flatness (version 0.1.4)

deviate_ends: Return a deviate vector with deviates at the extreme rank

Description

Based on the formula given in Jolliffe and Primo (2008) this function returns a vector with the right properties to test the presence of a deviate to flatness at both extreme ranks in a rank histogram.

Usage

deviate_ends(k)

Arguments

k

an integer. The number of components.

Value

An rkhist object.

Details

Although the deviate vector is not a rank histogram, this function returns an rkhist object for the sake of simplicity. This allows for instance to plot the vector.

References

Jolliffe, Ian T., and Cristina Primo. "Evaluating rank histograms using decompositions of the chi-square test statistic." Monthly Weather Review 136.6 (2008): 2133-2139. doi:https://doi.org/10.1175/2007MWR2219.1