parameter_table: Data.frame of parameter values

View source: R/parameter_table.R

parameter_tableR Documentation

Data.frame of parameter values

Description

Data.frame of parameter values

Usage

parameter_table(
  mean_dispersal_distance,
  outcrossing_rate,
  n_generations,
  n_starting_genotypes,
  density,
  nsims,
  n_sample_points,
  sample_spacing,
  range_limit,
  years_to_sample,
  dormancy,
  habitat_width = (n_sample_points * sample_spacing * range_limit),
  population_size = density * habitat_width^2,
  var_w
)

Arguments

mean_dispersal_distance

Float >0. Mean seed dispersal distance. The reciprocal of this is used as the rate parameter to draw from the exponential distribution.

outcrossing_rate

Float between 0 and 1. Probability that an individual is outcrossed.

n_generations

Int >12. Number of generations to run the simulations.

n_starting_genotypes

Int >0. Number of initial genotypes to start with. Defaults to 50

density

Float >0. Average density of plants per square metre.

nsims

Int >0. Number of replicate populations to simulate.

n_sample_points

Number of points to sample along the transect.

sample_spacing

Distance between sampling points.

range_limit

Float >1 defining how much wider than the transect the width of the habitat should be. This, along with plant density, determines how many plants will be simulated. Defaults to 1.5. Ignored if pop_structure="hardcoded"

years_to_sample

Vector of integers indexing which generations to sample the transect to calculate spatial structure and temporal stability. Defaults to the last 36 generations of the simulation

dormancy

Float between 0 and 1. Probability that a seedling is drawn from the seed bank. Seedlings are drawn from the prior generation with probability 1-dormancy.

habitat_width

Length of the edge of the habitat square

population_size

Number of individual plants in the population, derived from the habitat size and population density

var_w

Additive variance for (log) fitness. Defaults to zero (no selection).

Value

A data.frame giving parameter names and values

Author(s)

Tom Ellis


ellisztamas/simmiad documentation built on Dec. 12, 2023, 5:32 a.m.