Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n=44467
- argvals=data_totale$temps_ref_st
- library(fda)
- TableGCV<-c()
- i is the number of basis
- j lambda for penalization (here =0)
- for (i in c(800)) {
- for (j in c(0)) {
- basisobj = create.bspline.basis(c(0, max(argvals)),i)
- fdParobj = fdPar(fdobj=basisobj, Lfdobj=2, j)
- smoothlist = smooth.basis(argvals, mdata, fdParobj)
- xfd_acc = smoothlist$fd
- xfd_acc_coef = smoothlist$fd$coefs
- #GCV output
- gcv = smoothlist$gcv
- TableGCV <- rbind(TableGCV,c(i,j,gcv))
- }
- }
Add Comment
Please, Sign In to add comment