Skip to contents

Generate a random branching network

Usage

brnet(
  n_patch = 50,
  p_branch = 0.5,
  mean_env_source = 0,
  sd_env_source = 1,
  rho = 1,
  sd_env_lon = 0.1,
  mean_disturb_source = 0.9,
  sd_disturb_source = 1,
  sd_disturb_lon = 0.1,
  randomize_patch = TRUE,
  n_patch_free = FALSE
)

Arguments

n_patch

Number of patches in a network.

p_branch

Branching probability (success probability of a geometric distribution).

mean_env_source

Mean value of environmental condition at upstream origins of water.

sd_env_source

SD of environmental condition at upstream origins of water.

rho

Strength of spatial autocorrelation in environmental condition.

sd_env_lon

SD of longitudinal environmental noise. The SD is defined in a logit scale with a normal distribution.

mean_disturb_source

Mean disturbance strength at upstream origins of water. The value represents the proportional mortality (0 - 1.0).

sd_disturb_source

SD of disturbance strength at upstream origins of water. The SD is defined in a logit scale with a normal distribution.

sd_disturb_lon

SD of longitudinal noise of disturbance strength. The SD is defined in a logit scale with a normal distribution.

randomize_patch

Logical indicating whether patches are randomized or not. If FALSE, the function may generate a topologically-biased network. Default TRUE.

n_patch_free

Logical indicating whether imposing a constraint on n_patch or not. If TRUE, the number of patches is a random variable following a negative binomial distribution.

Reference

see package webpage for instruction

Author

Akira Terui, hanabi0111@gmail.com

Examples

if (FALSE) { # \dontrun{
# not run
brnet(n_patch = 10, p_branch = 0.5)
} # }