Learn R Programming

flatness (version 0.1.4)

deviate_U: Return a deviate vector with a U-shape trend

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 U-shape deviate to flatness in a rank histogram.

Usage

deviate_U(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