R Under development (unstable) (2024-07-03 r86870 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 3.607563 0.975838 Local Fixed Effects ------------------- Bandwidth: 10 (nearest neighbours) Coefficient Min 1st Quartile Median 3rd Quartile Max Intercept -1.824716 -1.745141 -1.664113 -1.552718 -1.469591 g1 5.911371 6.336709 6.745819 7.150387 7.537932 g2 -0.338279 0.027544 0.471335 0.807437 0.907289 Random Effects -------------- Groups Name Std.Dev. Corr group Intercept 1.908110 z1 1.303700 -0.841043 Residual 1.947259 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 | | --------- | -------- | | 3.607563 | 0.975838 | Local Fixed Effects ------------------- Bandwidth: 10 (nearest neighbours) | Coefficient | Min | 1st Quartile | Median | 3rd Quartile | Max | | ----------- | --------- | ------------ | --------- | ------------ | --------- | | Intercept | -1.824716 | -1.745141 | -1.664113 | -1.552718 | -1.469591 | | g1 | 5.911371 | 6.336709 | 6.745819 | 7.150387 | 7.537932 | | g2 | -0.338279 | 0.027544 | 0.471335 | 0.807437 | 0.907289 | Random Effects -------------- | Groups | Name | Std.Dev. | Corr | | -------- | --------- | -------- | --------- | | group | Intercept | 1.908110 | | | | z1 | 1.303700 | -0.841043 | | Residual | | 1.947259 | | 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 | 3.6075632 | 0.1490399 | 24.20536 | 0 | *** | | x1 | 0.9758377 | 0.0466415 | 20.92209 | 0 | *** | Local fixed effects: | | Min | 1st Quartile | Median | 3rd Quartile | Max | | --------- | --------- | ------------ | --------- | ------------ | --------- | | Intercept | -1.824716 | -1.745141 | -1.664113 | -1.552718 | -1.469591 | | g1 | 5.911371 | 6.336709 | 6.745819 | 7.150387 | 7.537932 | | g2 | -0.338279 | 0.027544 | 0.471335 | 0.807437 | 0.907289 | Diagnostics ----------- | rsquared | 0.644118 | | -------- | ----------- | | logLik | -364.135171 | | AIC | 745.492858 | Scaled residuals ---------------- | Min | 1Q | Median | 3Q | Max | | --------- | --------- | --------- | -------- | -------- | | -5.499110 | -1.173985 | -0.083345 | 1.311526 | 5.527857 | Other Information ----------------- Number of Obs: 484 Groups: group , 16 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 22 ] > > proc.time() user system elapsed 2.10 0.21 2.31