Description Usage Arguments Details Value Author(s) See Also Examples
Returns a Chi-square statistic for the uniformity of the distribution of Age data points after a Box-Cox transformation with a chosen lambda
1 | BoxCox.uniformity(lambda, covariate)
|
lambda |
numeric value used in the Box-Cox transform |
covariate |
numeric vector usually of sample age values which will be transformed |
Function to calculate the Chi square statistic after transforming the distribution of covariate values by a given lambda and. The total number of bins used in the initial counting process is floor(sqrt(length(covariate))) There should probably be a warning thrown if the number of data points entered is too few to be meaningful.
a single Chi-square statistic for the distributional uniformity of the transformed data set
Alexander D. Rowe
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.