Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default smooth in mgcv? #2

Open
ericward-noaa opened this issue Aug 2, 2023 · 1 comment
Open

Change default smooth in mgcv? #2

ericward-noaa opened this issue Aug 2, 2023 · 1 comment

Comments

@ericward-noaa
Copy link
Member

ericward-noaa commented Aug 2, 2023

Right now the code is using thin plate splines with 'k' specified. The approach is described well here: https://stats.stackexchange.com/questions/486109/gams-specifying-knots-positions-for-thin-plate-regression-splines

It might be useful to modify this and change to something other than bs = "tp". Options could be "ps", "gp", etc. See here:

https://github.com/raine-detmer/Threshold-Detection/blob/5f6312e18c4b0c004b09ea739adb2cd1a2bdcf4e/functions/gamfun.R#L32

@ericward-noaa
Copy link
Member Author

To this point, this could be another angle to explore -- which type of smooth is most effective at identifying thresholds in the kind of data we're working with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant