| .psi_kenward | R Documentation |
Computes the psi function used in the modified likelihood ratio test (Kenward, 1987) for better small-sample approximation.
.psi_kenward(x, y)
x |
First argument. |
y |
Second argument. |
psi(x, y) is defined as:
0 if x = 0
(2y - 1) / (2y(y - 1)) if x = 1
2 * sum from l=1 to x/2 of (y + 2l - 2)^(-1) if x > 0 and even
psi(1, y) + psi(x - 1, y + 1) if x > 1 and odd
Value of psi(x, y).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.