Description Usage Arguments Value Examples
View source: R/fit_sr_linked_fixed.R
This function fits a Ricker or Beverton-Holt stock recruitment model using maximum likelihood estimation in TMB.
1 | fit_sr_linked_fixed(data, b_col, r_col, cov_col, type)
|
data |
A data frame |
type |
"ricker" or "bev-holt" |
A list containing: (1) the data; (2) the model fit; and (3) the standard error report.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.