Skip to content

Option to include fitted models (GLM, GAM) into a FLSR-object  #60

@BernhardKuehn

Description

@BernhardKuehn

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions