| print_moran {spatialRF} | R Documentation | 
Prints results of a Moran's I test
Description
Prints the results of a Moran's I test on the residuals of a model.
Usage
print_moran(
  model,
  caption = NULL,
  verbose = TRUE
)
Arguments
model | 
 A model fitted with   | 
caption | 
 Character, caption of the output table, Default:   | 
verbose | 
 Logical, if   | 
Value
Prints a table in the console using the huxtable package.
See Also
moran(), moran_multithreshold(), get_moran(), plot_moran()
Examples
if(interactive()){
 #loading example data
 data(plant_richness_df)
 data(distance.matrix)
 #fitting random forest model
 rf.model <- rf(
   data = plant_richness_df,
   dependent.variable.name = "richness_species_vascular",
   predictor.variable.names = colnames(plant_richness_df)[5:21],
   distance.matrix = distance_matrix,
   distance.thresholds = c(0, 1000, 2000),
   n.cores = 1,
   verbose = FALSE
 )
 #printing Moran's I of model's residuals
 print_moran(rf.model)
}
[Package spatialRF version 1.1.4 Index]