fit_global_model_one: Fit a Global Model for a Given Response Variable

View source: R/model-fitting.R

fit_global_model_oneR Documentation

Fit a Global Model for a Given Response Variable

Description

Fit a Global Model for a Given Response Variable

Usage

fit_global_model_one(response, formula, fit_data)

Arguments

response

One of "log_effort" (drift trips per day), "log_total_cpt" (total salmon catch per drift trip), "logit_chinook_comp" (Chinook salmon proportion composition in drift harvest), "logit_chum_comp" (chum salmon proportion composition in drift harvest), or "logit_chum_comp" (sockeye salmon proportion composition in drift harvest).

formula

Character string containing the right-hand-side of the global model, without a tilde ("~"). For example, if the global model is to be lm(y ~ x1 + x2), pass formula = "x1+x2".

fit_data

data.frame storing the variables for regression fitting.

Value

A fitted model object with class lm.


bstaton1/KuskoHarvPred documentation built on Aug. 15, 2024, 3:30 p.m.