-
Notifications
You must be signed in to change notification settings - Fork 18
Description
How to include general SR-models (besides BH, ricker, hockey...) like already fitted GLMs or GAMs into the FLSR-framework? For now everything seems to be strongly focused on providing a formula, which can be fitted with "fmle" or "nls".
If you provide anything other to the @model-slot in the FLSR-object than a "formula" it throws the following error:
"assignment of an object of class “...” is not valid for @‘model’ in an object of class “FLSR”; is(value, "formula") is not TRUE"
My idea is to get around this by not using the internal fitting routines to get my SR-model, but to just provide a fitted model as basis for further predictions. One way I thought about is to overwrite the slots the FLSR-object gets its predictions from, but so far I have no clue where to look for in the code.
Thanks for your help.