simulateData3: Simulates catch-at-weight data using the s6model

View source: R/model.R

simulateData3R Documentation

Simulates catch-at-weight data using the s6model

Description

Simulate a data set of individual catch weight or

Usage

simulateData3(samplesize = 1000, params = parameters(), binsize = 5,
  keepZeros = TRUE, retDF = TRUE, ...)

Arguments

samplesize

Integer. Number of simulated individuals

params

Object of class Parameters. Model parameters

binsize

Numeric. Weight class width. If retDF is FALSE, binsize is ignored

keepZeros

Logical. If TRUE the resulting data.frame includes weight classes with zero individuals. Otherwise these weight classes are dropped. Ignored if retDF is FALSE

retDF

Logical. If TRUE a data.frame is returned with columns Weight (weight classes) and Freq (numbers per weight class)

...

Extra named arguments passed to getParams

Value

Invisible list with

  • 'sample' containing weights of individuals,

  • 'parameters' the parameters as a Parameters object

  • 'Fmsy' the Fmsy of the given parameters

  • 'df' A data.frame with columns Weight and Freq with number per weight class. This is returned only if retDF is TRUE

Author(s)

alko


alko989/s6model documentation built on Nov. 2, 2023, 10:04 p.m.