this function predicts the number of eggs using a geostatistical analysis with INLA and later calculates the hotspots of the eggs

eggs_hotspots(
  path_lect,
  year = NULL,
  locality,
  path_coord,
  cve_ent,
  leg_title,
  fam,
  alpha,
  plot = NULL,
  aproximation,
  integration,
  longitude,
  latitude,
  k,
  sem,
  var,
  cell_size,
  palette_vir,
  hist_dataset
)

Arguments

path_lect

is the directory of the ovitrampas readings file.

year

is the year to analyze

locality

is the locality target.

path_coord

is the directory of the ovitrampas coordinates file.

cve_ent

is the text id of the state.

leg_title

is title of legend.

fam

is the name of the family of the distribution for modelling count data. The option can be poisson, zeroinflatedpoisson0, zeroinflatedpoisson1, nbinomial, zeroinflatednbinomial0 and zeroinflatednbinomial1

alpha

alpha The significance level, also denoted as alpha or α, is the probability of rejecting the null hypothesis when it is true.

plot

is a logical value for the plot the mesh.

aproximation

aproximation is the aproximation of the joint posterior of the marginals and hyperparameter. The options are "gaussian", "simplified.laplace" & "laplace".

integration

integration is the integration strategy. The options are "grid", "eb" & "ccd".

longitude

is the name of the column of the longitude in the ovitrampas dataset.

latitude

is the name of the column of the latitude in the ovitrampas dataset.

k

is the parameter for define the triagulization of delauney in the inner and the outer area in the argument max.edge in the INLA:inla.mesh.2d.

sem

is the week you want to analyze

var

is the name of column where is the variable target (eggs count).

cell_size

is the sample number per location (area of locality/n)

palette_vir

is the palette.

hist_dataset

is a logical value for define the dataset, if TRUE is the ovitraps historical dataset and we neen define the year to analyze.

Value

a list of object (data, map, loc, dics, hotspots). data is original dataset (ovitraps + coordinates). The map is the map of eggs prediction. Loc is the sf objecto of locality limit. dics is the Deviancie Information Criterio of the model. the hotspots object is the dataset with the eggs prediction and the hotspots.

Details

inla.

Author

Felipe Antonio Dzul Manzanilla felipe.dzul.m@gmail.com

Examples

1+1
#> [1] 2