Description Usage Arguments Details Value Examples

log-likelihood of an observed interval distribution

1 2 |

`data` |
A numeric list of intervals. |

`mu` |
mean arrival interval. |

`sigma` |
standard deviation of the arrival interval. |

`p` |
chance to not observe an arrival. |

`N` |
Maximum number of missed observations to be taken into account (default N=5). |

`fun` |
Assumed distribution for the intervals, one of " |

`trunc` |
Use a truncated probability density function with range |

`fpp` |
Baseline proportion of intervals distributed as a random poisson process with mean arrival interval |

Refer to intervalpdf for details on the functional form of
the probability density function of an observed interval distribution *φ_{obs}*.
The log-likelihood *L* given a set of intervals *x_j* in `data`

is given by

*L(μ,σ,p)=\log ∑_j φ_{obs}(x_j | μ,σ,p)*

The function is provided to allow likelihood maximisation by other optimization tools than the default by optim.

returns the value of the loglikelihood

1 2 | ```
data(goosedrop)
loglikinterval(goosedrop$interval,mu=200,sigma=50,p=.3)
``` |

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.