zoon icon indicating copy to clipboard operation
zoon copied to clipboard

simdata module

Open AugustT opened this issue 8 years ago • 3 comments

We need a module that can create simulated data. This will need a number of features (add any I have missed):

  • [ ] Ability to specify the extent
  • [ ] Specify the number of data points desired
  • [ ] Specify the type of data points (presence, absence, background, proportion, ...)
  • [ ] Specify how these should be distributed (supply a probability surface?)

AugustT avatar Apr 26 '16 12:04 AugustT

Probably want someone a bit more generic than a surface. Perhaps it should take a function somehow.

I can imagine you might want to random select a data point then add datapoints close to the original point. This would require a function rather than a probability surface.

timcdlucas avatar May 13 '16 13:05 timcdlucas

Isn't @RTBecard developing modules like this?

goldingn avatar May 27 '16 03:05 goldingn

Yes, that's right. I'm using simulated datasets to test detection models within zoon, although I haven't incorporated it into a module yet but that should be quite easy to do.

Right now I have a set of functions that do the following:

  • Create a random raster of covariates for use in zoon within a specified extent.
  • Create site abundances and detections for a specified number of randomly located sites in the raster which vary according to the covariates at that location.
    • I have my site abundances distributed via poisson distribution with a log-linked relationship to covairates. I've also added support for providing empiracle distributions, so I can test models on datasets which violate the prior distribution assumptions.

I'm using this to check how the number of sites and visits affect the performance of the detection models I'm working with, in addition to using it to make sure my models have been implemented correctly.

If this sounds useful, I can post a vignette over the weekend, and if the functions I'm using are similar to what you guys have in mind for the simdata module, I can adapt it into a module.

RTbecard avatar May 27 '16 08:05 RTbecard