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_mdcol_sepColumn separator. Default to
"".header_sepHeader separator. Default to
"-". Ifheader_seponly 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_beginCharacter at the beginning of each row. Default to
col_sep.row_endCharacter at the ending of each row. Default to
col_sep.table_beforeCharacters to be printed before the table.
table_afterCharacters to be printed after the table.
table_styleName of pre-defined style. Possible values are
"plain","md","latex", or"booktabs". Default to"plain".
Examples
data(mulsam.test)
model <- hgwr(
formula = y ~ L(g1 + g2) + x1 + (z1 | group),
data = mulsam.test$data,
coords = mulsam.test$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: mulsam.test$data
#>
#> Parameter Estimates
#> -------------------
#> Fixed effects:
#> Estimated Sd. Err t.val Pr(>|t|)
#> Intercept 1.852190 0.203079 9.120541 0.000000 ***
#> x1 1.967644 0.033827 58.168539 0.000000 ***
#>
#> Bandwidth: 10 (nearest neighbours)
#>
#> GLSW effects:
#> Mean Est. Mean Sd. *** ** * .
#> Intercept -0.208441 0.247059 0.0% 0.0% 4.0% 24.0%
#> g1 1.631474 1.795246 0.0% 0.0% 0.0% 0.0%
#> g2 1.430116 1.476570 0.0% 0.0% 0.0% 0.0%
#>
#> SLR effects:
#> Groups Name Mean Std.Dev. Corr
#> group Intercept 0.000000 1.033171
#> z1 1.869539 1.033171 0.000000
#> Residual 0.079964 1.033171
#>
#>
#> Diagnostics
#> -----------
#> rsquared 0.905207
#> logLik NaN
#> AIC NaN
#>
#> Scaled Residuals
#> ----------------
#> Min 1Q Median 3Q Max
#> -3.416380 -0.584726 0.092501 0.725766 3.028003
#>
#> Other Information
#> -----------------
#> Number of Obs: 873
#> Groups: group , 25