get_response: Obtain the Name of the Response Variable for a Given Model

View source: R/utils.R

get_responseR Documentation

Obtain the Name of the Response Variable for a Given Model

Description

Obtain the Name of the Response Variable for a Given Model

Usage

get_response(fit)

Arguments

fit

A fitted model object with class lm or "averaging" (created via MuMIn::model.avg()).

Value

One of:

  • "effort" (number of drift trips),

  • "total_cpt" (total salmon catch per trip), or

  • "chinook_comp" (Chinook salmon proportion composition)

  • "chum_comp" (Chinook salmon proportion composition)

  • "sockeye_comp" (Chinook salmon proportion composition)

Note

Although the models are fitted to response variables on a transformed scale ("log_effort", "log_total_cpt", "logit_chinook_comp", "logit_chum_comp", "logit_sockeye_comp"), the name of the non-transformed variable is returned.


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