ipm_sim: Simulation

Description Usage Arguments Value

View source: R/ipm_sim.R

Description

Simulate population by the model of interest.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ipm_sim(
  K = 4,
  N.1 = 500,
  sigma = 30,
  p = rep(0.8, 4),
  xi = rep(0.8, 4),
  f = rep(2, 4),
  phi = rep(0.9, 3),
  R = NULL,
  model = "l",
  param = NULL
)

Arguments

K

a scalar, number of years.

N.1

a scalar,size of initial population.

sigma

a scalar, standard deviation of count data.

p

K x 1 vector, recapture probability of every year.

xi

K x 1 vector, first-time capture probability of every year.

f

K x 1 vector, fecundity rate of every year.

phi

(K-1) x 1 vector, mortality rate of every year.

R

(K-1) x 1 vector, number of release in every year.

model

a string, specifying the model of interest.

param

an nlist object, specifying the parameters of interest.

Value

data, the simulation result.


zywhy9/IPM documentation built on April 19, 2020, 10:24 p.m.