bias_metric: Estimate bias of estimation models

View source: R/eval_sims.R

bias_metricR Documentation

Estimate bias of estimation models

Description

Estimate the relationship between estimated indices and true biomass for simulated data sets. Uses linear regression to estimate their relationship, where one indicates unbiasedness. Requires a data frame with columns 'est_index', 'true_biomass', and 'repl'.

Usage

bias_metric(index_df, unbiased = TRUE)

Arguments

index_df

Data frame with estimated indices, true biomass, and replicate number

unbiased

Use debiased index estimates?

Value

A list with 'alpha', the offsets for each replicate; 'delta', the bias coefficient; 'epsilon', the residuals; and 'sigma', the standard deviation of the regression.

Author(s)

John Best


jkbest2/spatq documentation built on Sept. 22, 2022, 3:22 a.m.