Description Usage Arguments Value
View source: R/boot_fitstats.R
This function bootstraps p-values for the test statistics calculated with fitstats_optim(). It uses the sim_data() function in this package to simulate unbiased datasets.
1 2 3 4 5 6 7 8 9 10 11 12 | boot_fitstats(
n_sites,
n_samps,
lambda,
sigma,
det_prob,
analysis_method = "optim",
sampling_method = "distance",
W = 20,
nsim = 10,
parallel = FALSE
)
|
n_sites |
Number of sites to simulate |
n_samps |
Number of samples (replicates) per site to simulate |
lambda |
mean number of organisms at each site (1 draw per site) |
sigma |
SD of half-normal detection function |
det_prob |
mean detection probability (across distances from 0 to W) |
sampling_method |
either "pointcount' or 'distance' |
W |
Transect half-width |
nsim |
number of simulations # progress_bar = FALSE, |
parallel |
Logical. Whether or not to use parallel processing for the simulations. Defaults to FALSE. |
data.frame with 3 columns (1 for each fit statistic) and nsim rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.