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

use mgcv to allow for exchangeable spline bases #12

Open
julia-wrobel opened this issue Jun 12, 2020 · 1 comment
Open

use mgcv to allow for exchangeable spline bases #12

julia-wrobel opened this issue Jun 12, 2020 · 1 comment

Comments

@julia-wrobel
Copy link
Owner

julia-wrobel commented Jun 12, 2020

Using the mgcv package to create spline bases for the mean and eigenfunctions. This will allow the user to easily swap out different types of basis functions. Making this change will require a few considerations:

  • Basis can be generated using Theta_phi = smoothCon(s(hinv_tstar, k=Kt, bs="bs"), data=data.frame(hinv_tstar=hinv_tstar))[[1]]$X
  • More knots and basis functions are generated, the total number of knots will be Kt + 4
  • Several boundary knots are created in order to have better behavior of the tails of the function.
  • Basis for warping functions, Theta_h, will still be generated bs()
@jeff-goldsmith
Copy link
Collaborator

Just so I'm clear -- the goal is to use mgcv to generate the basis functions but not to implement the smoothing for the mean and eigenfunctions, correct?

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

No branches or pull requests

2 participants