This small package contains the Liland distribution for distances between discrete events in fixed time with probability mass, cumulative distribution, quantile function, random number generator, simulation functions and a test for over representation of short distances.
An example of its use is found in bacterial gene regulation where genes along a chromosome are regulated or not regulated. One may ask if the distances between regulated genes are random or tend to cluster, e.g. as operons. In the following example we have R = 1949 genes (trials) of which r = 162 are regulated (success).
## Mean Variance
## 11.96319 129.55528
A test for over representation of short distances can be performed, e.g. for distances shorter than 2 (x < 2).
## [1] 19
A comparison between distances obtained from sampling from the Bernoulli distribution with a fixed number of successes and the theoretical values from the Liland distribution follows.