Skip to contents

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 "-". If header_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".

Value

No return.

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