Temporal downscaling of entomological surveillance observations

spreader(
  mydf = NULL,
  date.field = NULL,
  value.field = NULL,
  counter.field = NULL,
  seed = 123
)

Arguments

mydf

A data.frame.

date.field

character, name of field containing dates.

value.field

integer, name of field containing the number of individuals sampled.

counter.field

integer, name of the field containing the number of days/weeks between each sampling. This is optional, if NULL then the function will compute the value assuming the trap was active during the whole period between two consecutive samplings.

seed

integer, define the seed for the binomial draws, default seed = 123.

Value

Returns a data.frame with the "adjusted value", i.e. the observation spread over the period of activity of the trap

Author

Daniele Da Re dare.daniele@gmail.com, Giovanni Marini dare.daniele@gmail.com