eggs_hotspots.Rd
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
)
is the directory of the ovitrampas readings file.
is the year to analyze
is the locality target.
is the directory of the ovitrampas coordinates file.
is the text id of the state.
is title of legend.
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 The significance level, also denoted as alpha or α, is the probability of rejecting the null hypothesis when it is true.
is a logical value for the plot the mesh.
aproximation is the aproximation of the joint posterior of the marginals and hyperparameter. The options are "gaussian", "simplified.laplace" & "laplace".
integration is the integration strategy. The options are "grid", "eb" & "ccd".
is the name of the column of the longitude in the ovitrampas dataset.
is the name of the column of the latitude in the ovitrampas dataset.
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.
is the week you want to analyze
is the name of column where is the variable target (eggs count).
is the sample number per location (area of locality/n)
is the palette.
is a logical value for define the dataset, if TRUE is the ovitraps historical dataset and we neen define the year to analyze.
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.
inla.
1+1
#> [1] 2