funsExpTrun | R Documentation |

Two functions: `EV.Trun`

and `EV.Trun.alt`

.

Both functions compute the expected value of Cuzick and Edwards *T_{run}* test statistic based on the number of
consecutive cases from the cases in the data under RL or CSR independence.

The number of cases are denoted as *n_1* (denoted as `n1`

as an argument)
and number of controls as *n_0* for both functions (denoted as `n0`

as an argument),
to match the case-control class labeling,
which is just the reverse of the labeling in \insertCitecuzick:1990;textualnnspat.

The function `EV.Trun.alt`

uses a loop and takes slightly longer than the function `EV.Trun`

,
hence `EV.Trun`

is used in other functions.

See also (\insertCitecuzick:1990;textualnnspat).

EV.Trun(n1, n0) EV.Trun.alt(n1, n0)

`n1, n0` |
The number of cases and controls used as arguments for both functions. |

The expected value of Cuzick and Edwards *T_{run}* test statistic for disease clustering

Elvan Ceyhan

`ceTrun`

and `EV.Tk`

n1<-20 n0<-25 EV.Trun(n1,n0)

nnspat documentation built on Aug. 30, 2022, 9:06 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.