Computes the positive Moran's Eigenvector Maps of a distance matrix.

mem( distance.matrix = NULL, distance.threshold = 0, colnames.prefix = "mem" )

distance.matrix | Distance matrix. Default: |
---|---|

distance.threshold | Numeric vector with distance thresholds defining different neighborhood extents within the distance matrix, Default: 0 |

colnames.prefix | Character, name prefix for the output columns. Default: |

A data frame with positive Moran's Eigenvector Maps.

Takes the distance matrix `x`

, double-centers it with `double_center_distance_matrix()`

, applies eigen, and returns eigenvectors with positive normalized eigenvalues (a.k.a Moran's Eigenvector Maps, or MEMs). These MEMs are later used as spatial predictors by `rf_spatial()`

.

if(interactive()){ #loading example distance matrix data(distance_matrix) #Moran's Eigenvector Maps of the distance matrix mem <- mem(x = distance_matrix) }