https://github.com/cran/fields
Raw File
Tip revision: fa60b066c5e784c83d245d9eeccca58ecc9cf496 authored by Douglas Nychka on 04 October 2020, 17:50:03 UTC
version 11.5
Tip revision: fa60b06
sreg.test.Rout.save

R version 4.0.2 (2020-06-22) -- "Taking Off Again"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

>  # fields is a package for analysis of spatial data written for
>   # the R software environment .
>   # Copyright (C) 2018
>   # University Corporation for Atmospheric Research (UCAR)
>   # Contact: Douglas Nychka, nychka@ucar.edu,
>   # National Center for Atmospheric Research,
>   # PO Box 3000, Boulder, CO 80307-3000
>   #
>   # This program is free software; you can redistribute it and/or modify
>   # it under the terms of the GNU General Public License as published by
>   # the Free Software Foundation; either version 2 of the License, or
>   # (at your option) any later version.
>   # This program is distributed in the hope that it will be useful,
>   # but WITHOUT ANY WARRANTY; without even the implied warranty of
>   # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>   # GNU General Public License for more details.
> 
> 
> # test of sreg and related functions
> 
> suppressMessages(library(fields))
> options(echo=FALSE)
      [,1]
 [1,]    0
 [2,]    1
 [3,]    3
 [4,]    7
 [5,]    8
 [6,]   10
 [7,]   14
 [8,]   15
 [9,]   17
[10,]   21
[11,]   22
[12,]   24
[13,]   28
[14,]   29
[15,]   31
[16,]   35
[17,]   36
[18,]   38
[19,]   42
[20,]   43
[21,]   45
[22,]   49
[23,]   50
[24,]   52
[25,]   56
[26,]   57
[27,]   59
[28,]   63
[29,]   64
[30,]   70
[31,]   73
[32,]   77
[33,]   80
[34,]   84
[35,]   87
[36,]   91
[37,]   94
[38,]   98
[39,]  105
 [1] 18.97168 18.68128 18.11641 17.08906 16.86864 16.47980 15.85693 15.73344
 [9] 15.52013 15.20847 15.14753 15.03544 14.80445 14.75019 14.66217 14.64271
[17] 14.68206 14.82162 15.26224 15.38825 15.64803 16.15237 16.26794 16.48257
[25] 16.83761 16.91449 17.06648 17.41892 17.53743 18.76400 19.78067 21.45399
[33] 22.79222 24.51581 25.69532 27.00447 27.80083 28.73058 30.04878
Testing:  predict at lambda sreg/Tps
PASSED test at tolerance  1e-08
      [,1]
 [1,]    0
 [2,]    1
 [3,]    3
 [4,]    7
 [5,]    8
 [6,]   10
 [7,]   14
 [8,]   15
 [9,]   17
[10,]   21
[11,]   22
[12,]   24
[13,]   28
[14,]   29
[15,]   31
[16,]   35
[17,]   36
[18,]   38
[19,]   42
[20,]   43
[21,]   45
[22,]   49
[23,]   50
[24,]   52
[25,]   56
[26,]   57
[27,]   59
[28,]   63
[29,]   64
[30,]   70
[31,]   73
[32,]   77
[33,]   80
[34,]   84
[35,]   87
[36,]   91
[37,]   94
[38,]   98
[39,]  105
 [1] 18.94781 18.66388 18.11058 17.09987 16.88134 16.49334 15.86704 15.74178
 [9] 15.52438 15.20371 15.14090 15.02644 14.80101 14.74987 14.66870 14.65834
[17] 14.69791 14.83451 15.26204 15.38458 15.63768 16.13238 16.24672 16.46052
[25] 16.82280 16.90347 17.06492 17.44234 17.56717 18.81208 19.81889 21.46563
[33] 22.78387 24.48848 25.66035 26.97376 27.78169 28.72789 30.08632
PASSED test at tolerance  5e-04
Testing:  GCV sreg/Tps
PASSED test at tolerance  2.1e-06
      [,1]
 [1,]    0
 [2,]    1
 [3,]    3
 [4,]    7
 [5,]    8
 [6,]   10
 [7,]   14
 [8,]   15
 [9,]   17
[10,]   21
[11,]   22
[12,]   24
[13,]   28
[14,]   29
[15,]   31
[16,]   35
[17,]   36
[18,]   38
[19,]   42
[20,]   43
[21,]   45
[22,]   49
[23,]   50
[24,]   52
[25,]   56
[26,]   57
[27,]   59
[28,]   63
[29,]   64
[30,]   70
[31,]   73
[32,]   77
[33,]   80
[34,]   84
[35,]   87
[36,]   91
[37,]   94
[38,]   98
[39,]  105
 [1] 18.19303 18.09795 17.90794 17.52833 17.43407 17.24664 16.88098 16.79374
 [9] 16.62626 16.32011 16.24939 16.11467 15.87270 15.81877 15.72037 15.56943
[17] 15.54296 15.50598 15.50482 15.52025 15.57196 15.77235 15.84523 16.02096
[25] 16.49720 16.64315 16.96754 17.73876 17.95573 19.43684 20.27233 21.45475
[33] 22.37795 23.63659 24.58569 25.84319 26.77295 27.99103 30.08161
Warning message:
In golden.section.search(ax = starts[1], bx = starts[2], cx = starts[3],  :
  Maximum iterations reached
Warning message:
In golden.section.search(ax = starts[1], bx = starts[2], cx = starts[3],  :
  Maximum iterations reached
Testing:  GCV sreg/Tps reps case
PASSED test at tolerance  1e-06
Testing:  GCV sreg/Tps reps case
PASSED test at tolerance  1e-06
All done with sreg tests
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> proc.time()
   user  system elapsed 
  0.713   0.069   0.776 
back to top