Print summary of an hgwrm
object.
Usage
# S3 method for class 'summary.hgwrm'
print(x, decimal.fmt = "%.6f", ...)
Arguments
- x
An object returned from
summary.hgwrm()
.- decimal.fmt
The format string passing to
base::sprintf()
.- ...
Arguments passed on to
print.table.md
col.sep
Column separator. Default to
""
.header.sep
Header separator. Default to
"-"
. Ifheader.sep
only contains one character, it will be repeated for each column. If it contains more than one character, it will be printed below the first row.row.begin
Character at the beginning of each row. Default to
col.sep
.row.end
Character at the ending of each row. Default to
col.sep
.table.before
Characters to be printed before the table.
table.after
Characters to be printed after the table.
table.style
Name of pre-defined style. Possible values are
"plain"
,"md"
,"latex"
, or"booktabs"
. Default to"plain"
.
Examples
data(multisampling)
model <- hgwr(formula = y ~ L(g1 + g2) + x1 + (z1 | group),
data = multisampling$data,
coords = multisampling$coords,
bw = 10)
summary(model)
#> 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 2.844509 0.254491 11.177234 0.000000 ***
#> x1 0.966059 0.046763 20.658467 0.000000 ***
#>
#> Bandwidth: 10 (nearest neighbours)
#>
#> GLSW effects:
#> Mean Est. Mean Sd. *** ** * .
#> Intercept -1.115285 0.557561 0.0% 0.0% 56.2% 18.8%
#> g1 6.976060 3.208388 0.0% 6.2% 62.5% 31.2%
#> g2 0.663998 3.249016 0.0% 0.0% 0.0% 0.0%
#>
#> SLR effects:
#> Groups Name Mean Std.Dev. Corr
#> group Intercept 0.000000 1.921255
#> z1 0.005422 1.921255 0.000000
#> Residual 0.233641 1.921255
#> Groups Name Mean Std.Dev. Corr
#> group Intercept 0.000000 1.921255
#> z1 0.005422 1.921255 0.000000
#> Residual 0.233641 1.921255
#>
#>
#> Diagnostics
#> -----------
#> rsquared 0.641698
#> logLik NaN
#> AIC NaN
#>
#> Scaled Residuals
#> ----------------
#> Min 1Q Median 3Q Max
#> -5.222809 -0.982000 0.161400 1.480594 5.562956
#>
#> Other Information
#> -----------------
#> Number of Obs: 484
#> Groups: group , 16