Description Usage Arguments Value Examples
This function tidies a pre-specified spatial weights matrix. Using a unique ID from a data frame as well as a model formula, this function subsets an existing W-matrix by dropping rows and columns which correspond to missing values in the data.
1 |
formula |
A model formula to identify appropriate observations for subsetting |
data |
A data frame containing variables to be used in a spatial model |
id |
A unique ID variable that corresponds to row and column names in W |
w |
A spatial weights matrix containing observations that correspond to data rows with missing values |
A subset w which has dropped rows and columns that have missing values on variables in the supplied formula.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.