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

Bug in the examples from the JSS paper #11

Open
agila5 opened this issue Jul 23, 2023 · 0 comments
Open

Bug in the examples from the JSS paper #11

agila5 opened this issue Jul 23, 2023 · 0 comments

Comments

@agila5
Copy link

agila5 commented Jul 23, 2023

Dear all, I just started learning the basics about FDA and your package and I think I've found a bug when replicating the code from the JSS paper. See below.

library(fda.usc)
#> Loading required package: fda
#> Loading required package: splines
#> Loading required package: fds
#> Loading required package: rainbow
#> Loading required package: MASS
#> Loading required package: pcaPP
#> Loading required package: RCurl
#> Loading required package: deSolve
#> 
#> Attaching package: 'fda'
#> The following object is masked from 'package:graphics':
#> 
#>     matplot
#> Loading required package: mgcv
#> Loading required package: nlme
#> This is mgcv 1.8-42. For overview type 'help("mgcv-package")'.
#>  fda.usc is running sequentially usign foreach package
#>  Please, execute ops.fda.usc() once to run in local parallel mode
#>  Deprecated functions: min.basis, min.np, anova.hetero, anova.onefactor, anova.RPm
#>  New functions: optim.basis, optim.np, fanova.hetero, fanova.onefactor, fanova.RPm
#> ----------------------------------------------------------------------------------
data(phoneme)
learn <- phoneme$learn
optim.np(learn, type.S = S.KNN, h = 3:25, Ker = Ker.unif)
#> Error in integrate(function(x) {: non-finite function value

Created on 2023-07-23 with reprex v2.0.2

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.3.1 (2023-06-16 ucrt)
#>  os       Windows 11 x64 (build 22621)
#>  system   x86_64, mingw32
#>  ui       RTerm
#>  language (EN)
#>  collate  English_United Kingdom.utf8
#>  ctype    English_United Kingdom.utf8
#>  tz       Europe/Rome
#>  date     2023-07-23
#>  pandoc   3.1.1 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version   date (UTC) lib source
#>  bitops        1.0-7     2021-04-24 [1] CRAN (R 4.3.1)
#>  cli           3.6.1     2023-03-23 [1] CRAN (R 4.3.1)
#>  cluster       2.1.4     2022-08-22 [2] CRAN (R 4.3.1)
#>  codetools     0.2-19    2023-02-01 [2] CRAN (R 4.3.1)
#>  colorspace    2.1-0     2023-01-23 [1] CRAN (R 4.3.1)
#>  deSolve     * 1.36      2023-07-01 [1] CRAN (R 4.3.1)
#>  digest        0.6.33    2023-07-07 [1] CRAN (R 4.3.1)
#>  doParallel    1.0.17    2022-02-07 [1] CRAN (R 4.3.1)
#>  evaluate      0.21      2023-05-05 [1] CRAN (R 4.3.1)
#>  fastmap       1.1.1     2023-02-24 [1] CRAN (R 4.3.1)
#>  fda         * 6.1.4     2023-05-23 [1] CRAN (R 4.3.1)
#>  fda.usc     * 2.1.0     2023-07-22 [1] Github (moviedo5/fda.usc@8165866)
#>  fds         * 1.8       2018-10-31 [1] CRAN (R 4.3.1)
#>  foreach       1.5.2     2022-02-02 [1] CRAN (R 4.3.1)
#>  fs            1.6.3     2023-07-20 [1] CRAN (R 4.3.1)
#>  glue          1.6.2     2022-02-24 [1] CRAN (R 4.3.1)
#>  hdrcde        3.4       2021-01-18 [1] CRAN (R 4.3.1)
#>  htmltools     0.5.5     2023-03-23 [1] CRAN (R 4.3.1)
#>  iterators     1.0.14    2022-02-05 [1] CRAN (R 4.3.1)
#>  KernSmooth    2.23-21   2023-05-03 [2] CRAN (R 4.3.1)
#>  knitr         1.43      2023-05-25 [1] CRAN (R 4.3.1)
#>  ks            1.14.0    2022-11-24 [1] CRAN (R 4.3.1)
#>  kSamples      1.2-9     2019-05-20 [1] CRAN (R 4.3.1)
#>  lattice       0.21-8    2023-04-05 [2] CRAN (R 4.3.1)
#>  lifecycle     1.0.3     2022-10-07 [1] CRAN (R 4.3.1)
#>  magrittr      2.0.3     2022-03-30 [1] CRAN (R 4.3.1)
#>  MASS        * 7.3-60    2023-05-04 [2] CRAN (R 4.3.1)
#>  Matrix        1.6-0     2023-07-08 [1] CRAN (R 4.3.1)
#>  mclust        6.0.0     2022-10-31 [1] CRAN (R 4.3.1)
#>  mgcv        * 1.8-42    2023-03-02 [2] CRAN (R 4.3.1)
#>  mvtnorm       1.2-2     2023-06-08 [1] CRAN (R 4.3.1)
#>  nlme        * 3.1-162   2023-01-31 [2] CRAN (R 4.3.1)
#>  pcaPP       * 2.0-3     2022-10-24 [1] CRAN (R 4.3.1)
#>  pracma        2.4.2     2022-09-22 [1] CRAN (R 4.3.1)
#>  purrr         1.0.1     2023-01-10 [1] CRAN (R 4.3.1)
#>  R.cache       0.16.0    2022-07-21 [1] CRAN (R 4.3.1)
#>  R.methodsS3   1.8.2     2022-06-13 [1] CRAN (R 4.3.1)
#>  R.oo          1.25.0    2022-06-12 [1] CRAN (R 4.3.1)
#>  R.utils       2.12.2    2022-11-11 [1] CRAN (R 4.3.1)
#>  rainbow     * 3.7       2022-10-09 [1] CRAN (R 4.3.1)
#>  RCurl       * 1.98-1.12 2023-03-27 [1] CRAN (R 4.3.1)
#>  reprex        2.0.2     2022-08-17 [1] CRAN (R 4.3.1)
#>  rlang         1.1.1     2023-04-28 [1] CRAN (R 4.3.1)
#>  rmarkdown     2.23      2023-07-01 [1] CRAN (R 4.3.1)
#>  rstudioapi    0.15.0    2023-07-07 [1] CRAN (R 4.3.1)
#>  sessioninfo   1.2.2     2021-12-06 [1] CRAN (R 4.3.1)
#>  styler        1.10.1    2023-06-05 [1] CRAN (R 4.3.1)
#>  SuppDists     1.1-9.7   2022-01-03 [1] CRAN (R 4.3.1)
#>  vctrs         0.6.3     2023-06-14 [1] CRAN (R 4.3.1)
#>  withr         2.5.0     2022-03-03 [1] CRAN (R 4.3.1)
#>  xfun          0.39      2023-04-20 [1] CRAN (R 4.3.1)
#>  yaml          2.3.7     2023-01-23 [1] CRAN (R 4.3.1)
#> 
#>  [1] C:/Users/user/AppData/Local/R/win-library/4.3
#>  [2] C:/Program Files/R/R-4.3.1/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────
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