R Under development (unstable) (2024-07-26 r86926 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 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. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(hgwrr) Loading required package: sf Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.3.1; sf_use_s2() is TRUE > > test_check("hgwrr") Hierarchical and geographically weighted regression model ========================================================= Formula: y ~ L(g1 + g2) + x1 + (z1 | group) Method: Back-fitting and Maximum likelihood Data: multisampling$data Global Fixed Effects ------------------- Intercept x1 4.520147 0.975624 Group-level Spatially Weighted Effects ------------------- Bandwidth: 10 (nearest neighbours) Coefficient Min 1st Quartile Median 3rd Quartile Max Intercept -2.766203 -2.687999 -2.582931 -2.439726 -2.342043 g1 5.922558 6.348216 6.876019 7.199972 7.726441 g2 -0.429362 0.010959 0.587619 0.819862 0.963593 Sample-level Random Effects -------------- Groups Name Std.Dev. Corr group Intercept 1.684769 z1 1.386066 -0.802285 Residual 1.947993 Other Information ----------------- Number of Obs: 484 Groups: group , 16 Hierarchical and geographically weighted regression model ========================================================= Formula: y ~ L(g1 + g2) + x1 + (z1 | group) Method: Back-fitting and Maximum likelihood Data: multisampling$data Global Fixed Effects ------------------- | Intercept | x1 | | --------- | -------- | | 4.520147 | 0.975624 | Group-level Spatially Weighted Effects ------------------- Bandwidth: 10 (nearest neighbours) | Coefficient | Min | 1st Quartile | Median | 3rd Quartile | Max | | ----------- | --------- | ------------ | --------- | ------------ | --------- | | Intercept | -2.766203 | -2.687999 | -2.582931 | -2.439726 | -2.342043 | | g1 | 5.922558 | 6.348216 | 6.876019 | 7.199972 | 7.726441 | | g2 | -0.429362 | 0.010959 | 0.587619 | 0.819862 | 0.963593 | Sample-level Random Effects -------------- | Groups | Name | Std.Dev. | Corr | | -------- | --------- | -------- | --------- | | group | Intercept | 1.684769 | | | | z1 | 1.386066 | -0.802285 | | Residual | | 1.947993 | | Other Information ----------------- Number of Obs: 484 Groups: group , 16 Hierarchical and geographically weighted regression model ========================================================= Formula: y ~ L(g1 + g2) + x1 + (z1 | group) Method: Back-fitting and Maximum likelihood Data: multisampling$data Parameter Estimates ------------------- Fixed effects: | | Estimated | Sd. Err | t.val | Pr(>|t|) | | | --------- | --------- | ---------- | -------- | -------- | --- | | Intercept | 4.5201469 | 0.14258547 | 31.70131 | 0 | *** | | x1 | 0.9756242 | 0.04665296 | 20.91238 | 0 | *** | GLSW effects: | | Mean Est. | Mean Sd. | *** | ** | * | . | | --------- | --------- | -------- | ------ | ---- | ---- | ---- | | Intercept | -2.563548 | 0.172738 | 100.0% | 0.0% | 0.0% | 0.0% | | g1 | 6.766587 | 0.997272 | 100.0% | 0.0% | 0.0% | 0.0% | | g2 | 0.424788 | 1.027616 | 0.0% | 0.0% | 0.0% | 0.0% | Bandwidth: 10 (nearest neighbours) SLR effects: | Groups | Name | Mean | Std.Dev. | Corr | | -------- | --------- | --------- | -------- | --------- | | group | Intercept | -0.001278 | 1.684769 | | | | z1 | 0.001310 | 1.386066 | -0.802285 | | Residual | | 0.000000 | 1.947993 | | Diagnostics ----------- | rsquared | 0.644593 | | -------- | ----------- | | logLik | -364.559002 | | AIC | 746.733080 | Scaled Residuals ---------------- | Min | 1Q | Median | 3Q | Max | | --------- | --------- | --------- | -------- | -------- | | -5.539520 | -1.209564 | -0.073521 | 1.318062 | 5.511269 | Other Information ----------------- Number of Obs: 484 Groups: group , 16 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 26 ] > > proc.time() user system elapsed 3.15 0.29 3.43