fit_eval: Function to fit models

Description Usage Arguments Value

View source: R/fit_eval.R

Description

Uses model and predictors to generate fit. Also returns root means squared log error and R-squared.

Usage

1
2
3
4
5
6
7
8
9
fit_eval(
  dat,
  mod,
  Ke = NA,
  alpha = NA,
  sigma = NA,
  NVthreshold = NA,
  silent = F
)

Arguments

mod

mle2 model object.

Ke

Optional. Default (NA) results in searching for the parameter in the model object.

alpha

Optional. Default (NA) results in searching for the parameter in the model object.

sigma

Optional. Default (NA) results in searching for the parameter in the model object.

NVthreshold

Optional. Default (NA) results in searching for the parameter in the model object.

silent

Should diagnostic plots be generated? Passed to diagnostic_plots function.

data

Data set as a list, passed in the same way as for an mle2 model.

tt

Optional. Default (NA) results in searching for the parameter in the model object.

Value

A list with the input, model fits, R-squared, and root mean square log error


sean-rohan-NOAA/GVRDM documentation built on Dec. 22, 2021, 11:14 p.m.