quantileValues: quantile_values

View source: R/quantileValues.R

quantileValuesR Documentation

quantile_values

Description

Calculate Quantile Values with Optional Correction. This function calculates the quantile values for a given dataset and set of parameters, with the option to apply a correction. It returns a data frame containing the quantile values for each day.

Usage

quantileValues(
  data,
  N,
  npop,
  ntimes,
  ngen = 1,
  species,
  depth,
  daysDiff,
  correction = TRUE
)

Arguments

data

A data frame containing the input data.

N

An integer representing the number of replicates to use in the simulation.

npop

An integer representing the population size.

ntimes

An integer representing the number of time steps in the simulation.

ngen

An integer representing the number of generations in the simulation (default is 1).

species

A character string specifying the species.

depth

A numeric value representing the depth.

daysDiff

An integer representing the difference in days between the start of the data and the start of the simulation.

correction

A logical value indicating whether to apply a correction (default is TRUE).

Value

A data frame containing the quantile values for each day with columns: day, ql (lower quantile), qu (upper quantile), and qm (median quantile).


Alessandra23/pineR documentation built on Aug. 26, 2023, 8 a.m.