sim_offspring: Simulate offspring

Description Usage Arguments Value

View source: R/sim.R

Description

Simulates offspring produced by an individual defined by some thermal-performance traits (TPTs).

Usage

1
sim_offspring(tpts, n_off, mu, sdm, cmtx, pmin, samples, error)

Arguments

tpts

The individual's TPTs

n_off

The number of offspring to be generated by the individual

mu

The mutation probability (constant for all TPTs)

sdm

The percentage of the original TPT value that will act as the standard deviation of the normal distribution of mean = 0 from which the amount of change occuring on a mutating trait will be sampled.

cmtx

A genetic correlations matrix for the TPTs. This parameter is optional and CANNOT INCLUDE Pmin.

pmin

The percentage of Pmax corresponding to Pmin.

samples

The number of samples to be generated for each offspring.

error

The error to be introduced into the offspring's TPD in units of standard deviation of a normal distribution with 0 as mean.

Value

A TPD for the offspring generated with id, t and p as columns.


ggcostoya/limon documentation built on April 27, 2021, 10:09 p.m.