fit_sp_nls: Fit surplus production model using NLS estimation

Description Usage Arguments Value Examples

View source: R/fit_sp_nls.R

Description

This function fits a surplus production model using NLS estimation.

Usage

1
fit_sp_nls(data, b_col, sp_col, p = 1)

Arguments

data

A prepped data frame with the following required columns: stockid, year, biomass_scaled, sp_scaled

p

The shape parameter

Value

A data frame containing the point estimate fits for r and K

Examples

1
2
3
4
data <- splink::ram_ne
output <- fit_sp_nls(data=data, b_col="tb_scaled", sp_col="sp_scaled", p=0.4)
output$fits
splink::plot_fits_nls(output)

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