Is it possible to constrain spline shapes? #234
iparperspective
started this conversation in
General
Replies: 1 comment 2 replies
-
Yes -- by default, sdmTMB implements smooths as p-splines, rather than the tps approach that is the default in mgcv. This means there is a penalty on complexity -- with a goal of selecting more realistic shapes. You can also specify the knots (approx) as
With smaller values of |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have used squared terms and the scam package for R to force realistic covariate effect.
I wonder if sdmTMB is able to this? If not, would it be possible to implement it? I think that it would be an excellent addition.
Cheers,
Iosu
Beta Was this translation helpful? Give feedback.
All reactions