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 or minimum DIC 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.
CalcStatClusterGivenCenter( point, stfdf, rr, minDateCluster, maxDateCluster, fractpop, model0, ClusterSizeContribution )
vector with the coordinates of the center of the cluster.
spatio-temporal class object containing the data.
square of the maximum radius of the cluster.
start date of the cluster.
end date of the cluster.
maximum fraction of the total population inside the cluster.
Initial model (including covariates).
Variable used to check the fraction of the
population at risk in the cluster
This can be "glm" for generalized linear models (glm stats),
"glmer" for generalized linear mixed model (glmer lme4),
"zeroinfl" for zero-inflated models (zeroinfl), or
"inla" for generalized linear, generalized linear mixed or zero-inflated models fitted with
vector containing the coordinates of the center, the size, the start and end dates, the log-likelihood ratio or DIC, the p-value and the risk of the cluster with the maximum log-likelihood ratio or minimum DIC.