fit_sr_linked_fixed: Fit stock recruit model using maximum likelihood estimation

Description Usage Arguments Value Examples

View source: R/fit_sr_linked_fixed.R

Description

This function fits a Ricker or Beverton-Holt stock recruitment model using maximum likelihood estimation in TMB.

Usage

1
fit_sr_linked_fixed(data, b_col, r_col, cov_col, type)

Arguments

data

A data frame

type

"ricker" or "bev-holt"

Value

A list containing: (1) the data; (2) the model fit; and (3) the standard error report.

Examples

1
2
3
4
5
6
data <- splink::ram_wc
output <- splink::fit_sr_linked_fixed(data=data, b_col="b_scaled", r_col="r_scaled", cov_col="sst_c_scaled", type="ricker")
results <- splink::get_results(output)
splink::plot_results(results)
splink::plot_thetas(results)
splink::plot_fits_sr_linked(output, b_col="b_scaled", r_col="r_scaled", cov_col="sst_c_scaled", plotdir="~/Desktop", plotname="test.pdf")

cfree14/splink documentation built on Dec. 19, 2021, 2:57 p.m.