| disaggregate_covariate | R Documentation |
Disaggregate regional means to fine grid, preserving aggregate means
disaggregate_covariate(
x_r,
W,
adj,
pop = NULL,
lambda_smooth = 1,
lambda_ridge = 1e-04
)
x_r |
length m vector of regional means (or pop-weighted means) |
W |
m x n aggregation matrix (1 if cell in region, 0 otherwise) |
adj |
n x n adjacency matrix |
pop |
optional length n population vector; if provided, preserves population-weighted means rather than simple means |
lambda_smooth |
weight on spatial smoothness |
lambda_ridge |
small ridge for numerical stability (needed because L is singular) |
A list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.