Prints the results of a Moran's I test on the residuals of a model.
Arguments
- model
A model fitted with
rf(),rf_repeat(), orrf_spatial().- caption
Character, caption of the output table, Default:
NULL- verbose
Logical, if
TRUE, the resulting table is printed into the console, Default:TRUE
Value
Prints a table in the console using the huxtable package.
See also
moran(), moran_multithreshold(), get_moran(), plot_moran()
Other model_info:
get_evaluation(),
get_importance(),
get_importance_local(),
get_moran(),
get_performance(),
get_predictions(),
get_residuals(),
get_response_curves(),
get_spatial_predictors(),
print.rf(),
print_evaluation(),
print_importance(),
print_performance()
Examples
data(plants_rf)
print_moran(plants_rf)
#> ┌──────────┬───────────┬─────────┬──────────────────┐
#> │ Distance │ Moran's I │ P value │ Interpretation │
#> ├──────────┼───────────┼─────────┼──────────────────┤
#> │ 100.0 │ 0.164 │ 0.000 │ Positive spatial │
#> │ │ │ │ correlation │
#> ├──────────┼───────────┼─────────┼──────────────────┤
#> │ 1000.0 │ 0.073 │ 0.000 │ Positive spatial │
#> │ │ │ │ correlation │
#> ├──────────┼───────────┼─────────┼──────────────────┤
#> │ 2000.0 │ 0.026 │ 0.002 │ Positive spatial │
#> │ │ │ │ correlation │
#> ├──────────┼───────────┼─────────┼──────────────────┤
#> │ 4000.0 │ 0.008 │ 0.032 │ Positive spatial │
#> │ │ │ │ correlation │
#> └──────────┴───────────┴─────────┴──────────────────┘