get_response | R Documentation |
Obtain the Name of the Response Variable for a Given Model
get_response(fit)
fit |
A fitted model object with class |
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)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.