Description Usage Arguments Details Value Author(s) Examples
Simulate data from a (line or point transect) mixture model detection function with or without covariates using rejection sampling.
1 2 |
pars |
Parameters of the model to fit. See
|
mix.terms |
Number of mixture components. |
n |
Number of data to generate. |
width |
Truncation distance. |
zdim |
Number of columns of |
z |
Covariate data. Defaults to NULL. See details for more information. |
pt |
Should point transect data be generated? Defaults to FALSE. |
showit |
Print the acceptance rate. Defaults to FALSE. |
This routine uses rejection sampling, so may be rather slow of large sample sizes. Direct sampling will be available soon.
a data.frame
with the following columns:
observed | Whether the object was
observed, always n 1s. Kept for mmds
compatability. |
object | Object identifier, numbered
1 to n . Kept for mmds compatability. |
distance | Observed distances. |
Then follows as
many columns as there are columns as z , named as
in z . |
David L. Miller
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.