retroCalcMohnsRho: Calculate Mohn's rho from a dataframe of retrospective...

View source: R/retroFunctions.R

retroCalcMohnsRhoR Documentation

Calculate Mohn's rho from a dataframe of retrospective estimates

Description

This function calculate Mohn's rho from a dataframe of retrospective estimates, and optionally produces a plot.

Usage

retroCalcMohnsRho(dfr, ylab = "value", yadj = 0, showPlot = FALSE)

Arguments

dfr
  • dataframe of retrospective estimates for analysis

ylab
  • y axis label for plot

yadj
  • adjustment to assessment year-1 for max year in dataframe

showPlot
  • flag (T/F) to show plot immediately

Details

Mohn's rho quantifies the relative bias exhibited by estimates of some quantity from a set of retrospective model runs.

Value

Returns a list with rho, a dataframe of values, and a ggplot2 object, invisibly


wStockhausen/rCompTCMs documentation built on Aug. 27, 2024, 7:15 p.m.