Learn R Programming

metafolio (version 0.1.1)

get_conserv_plans_mv: Run simulation for conservation schemes

Description

Run the metapopulation simulation for various conservation prioritization schemes.

Usage

get_conserv_plans_mv(
  weights,
  reps = 150,
  assess_freq = 5,
  burn = 1:30,
  risk_fn = var,
  ...
)

Arguments

weights

A matrix of habitat weights. Each row corresponds to another scenario. Each column is a different habitat location.

reps

Number of portfolios to simulate.

assess_freq

The frequency (in generations) of spawner-recruit re-assessment. Passed to meta_sim.

burn

Cycles to throw out as burn in.

risk_fn

Type of variance or risk metric. By default takes the variance. Instead you can supply any function that takes a numeric vector and returns some single numeric value. E.g. CVaR.

...

Other values to pass to meta_sim.

Value

Returns the portfolio mean and variance values and the simulation runs.