tte_pwr_sim: Simulation-based TTE power analysis

Description Usage Arguments Value Examples

View source: R/tte_pwr_sim.R

Description

Simulation-based TTE power analysis

Usage

1
tte_pwr_sim(N, study_area, ncam, nocc, nper, cam_area, niter)

Arguments

N

a numeric vector, true abundance for simulation

study_area

a numeric vector, true study area size (N/study_area = true density)

ncam

a numeric vector, number of cameras to simulate

nocc

a numeric vector, number of occasions to simulate

nper

a numeric vector, number of sampling periods per sampling occasion

cam_area

a numeric vector, size of the camera viewshed

niter

a single value, number of simulation iterations for each N x study_area x ncam x nocc combination

Value

a tibble

Examples

1
2
3
4
5
6
7
8
9
tte_pwr_sim(
  N = c(5, 15),
  study_area = 1e6,
  ncam = c(50, 100),
  nocc = c(10000, 20000),
  nper = 20
  cam_area = 150,
  niter = 30
)

annam21/spaceNtime documentation built on Dec. 12, 2021, 2:48 a.m.