
R Under development (unstable) (2018-01-05 r74057) -- "Unsuffered Consequences"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin16.7.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.
> 
> suppressMessages(library( fields ))
> options( echo=FALSE)
PASSED test at tolerance  1e-08
PASSED test at tolerance  1e-08
PASSED test at tolerance  1e-08
PASSED test at tolerance  1e-08
PASSED test at tolerance  1e-08
PASSED test at tolerance  0.002
PASSED test at tolerance  1e-08
PASSED test at tolerance  1e-08
PASSED test at tolerance  0.02
PASSED test at tolerance  0.02
PASSED test at tolerance  0.002
PASSED test at tolerance  0.02
PASSED test at tolerance  0.02
PASSED test at tolerance  0.002
PASSED test at tolerance  0.02
PASSED test at tolerance  0.02
PASSED test at tolerance  0.002
lnProfileLike.FULL             lambda              theta           sigmaMLE 
       -61.8145417          0.1015556          0.1002546          0.3185669 
            rhoMLE            funEval           gradEval 
         0.9993032          8.0000000          6.0000000 
lnProfileREML.FULL             lambda              theta           sigmaMLE 
       -61.8145417          0.1015556          0.1002546          0.3185669 
            rhoMLE            funEval           gradEval 
         0.9993032          8.0000000          6.0000000 
lnProfileLike.FULL             lambda              theta           sigmaMLE 
       -61.8143732          0.1015557          0.1002514          0.3185628 
            rhoMLE            funEval           gradEval 
         0.9992768          8.0000000          6.0000000 
1  2  3  4  5  6  7  8  9  10  all done with mKrigMLEGrid tests
> 
> test.for.zero( trueTheta, mean(hold[,3]), tol=2e-3,tag="Monte Carlo theta")
Testing:  Monte Carlo theta
PASSED test at tolerance  0.002
> test.for.zero( trueLambda, mean(hold[,2]), tol=2e-2,tag="Monte Carlo theta")
Testing:  Monte Carlo theta
PASSED test at tolerance  0.02
> 
> 
> proc.time()
   user  system elapsed 
 13.091   2.374  13.013 
