View source: R/2DLTsimulator.R
This is a helper function for simulating data with g(0)<1. The function
calculates a minimum forward distance, y_{min}, to truncate simulated data, i.e. simulated sightings
with y_i<y_{min} are deleted.
@details The idea behind this function is that simulated data with y_i<y_{min} would got have been
detected at a given g(0)<1. The y_{min} for a given g(0)<1 is solved using
optimise(). The resulting y_{min} is substracted from the remaining simulated observations.
@param gy desired detectability at y=0
@param ymax largest forward distance
@param b vector of detection hazard function parameters
@param hfun detection hazard function
@param tolerance passed into optimize()
1 |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.