This function allows you to simulate data of dead recoveries with specified survival, migratory connectivity and recovery probability in 1D- or 2D-space and time using rejection sampling.

simContin(markRecaptureObject)

Arguments

markRecaptureObject

object of class markRecaptureObject (see markRecaptureObject())

Value

returns object of class markRecaptureObject with added simulated recoveryData

Examples

{ mro <- markRecaptureObject(xrange = c(0,1), survival = function(w){0.5*w+.4}, recovery = function(w){0.01}, markedInds = rep(1000,3), migratoryConnectivity = function(b,w,B=3){ truncnorm::dtruncnorm(w,0,1, mean = seq(0.1,0.9,length.out = B)[b], sd = 0.3)}, observationTime = 5) mro <- simContin(mro) }
#> Registered S3 method overwritten by 'cli': #> method from #> print.boxx spatstat.geom