# Calls the function to obtain the cluster with the maximum log-likelihood...

### Description

Calls the function to obtain the cluster with the maximum log-likelihood ratio of all the clusters with the same center and start and end dates.

### Usage

1 2 | ```
CalcStatClusterGivenCenter(point, stfdf, rr, minDateCluster,
maxDateCluster, fractpop, model0)
``` |

### Arguments

`point` |
vector with the coordinates of the center of the cluster. |

`stfdf` |
spatio-temporal class object containing the data. |

`rr` |
square of the maximum radius of the cluster. |

`minDateCluster` |
start date of the cluster. |

`maxDateCluster` |
end date of the cluster. |

`fractpop` |
maximum fraction of the total population inside the cluster. |

`model0` |
Initial model (including covariates). This can be "glm" for generalized linear models (glm stats), "glmer" for generalized linear mixed model (glmer lme4), or "zeroinfl" for zero-inflated models (zeroinfl pscl). |

### Details

This function orders the regions according to the distance to a given center and selects the regions with distance to the center less than sqrt(rr). Then it calls glmAndZIP.iscluster() to obtain the cluster with the maximum log-likelihood ratio of all the clusters with the same center and start and end dates, and where the maximum fraction of the total population inside the cluster is less than fractpop.

### Value

vector containing the coordinates of the center, the size, the start and end dates, and the log-likelihood ratio of the cluster with the maximum log-likelihood ratio.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.