fit_sp_linked_fixed: Fit surplus production model using maximum likelihood...

Description Usage Arguments Value Examples

View source: R/fit_sp_linked_fixed.R

Description

This function fits a surplus production model using maximum likelihood estimation in TMB.

Usage

1
fit_sp_linked_fixed(data, b_col, sp_col, p = 1, cov_col)

Arguments

data

Data

b_col

Name of biomass column

sp_col

Name of surplus production column

p

Shape parameter

cov_col

Name of covariate column

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_ne
output <- splink::fit_sp_linked_fixed(data=data, b_col="tb_scaled", sp_col="sp_scaled", p=0.2, cov_col="sst_c_scaled")
results <- splink::get_results(output)
splink::plot_results(results)
splink::plot_thetas(results)
splink::plot_fits(output)

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