Disaggregate regional means to fine grid, preserving aggregate means
disaggregate_covariate(
x_r,
W,
adj,
pop = NULL,
lambda_smooth = 1,
lambda_ridge = 1e-04
)A list
length m vector of regional means (or pop-weighted means)
m x n aggregation matrix (1 if cell in region, 0 otherwise)
n x n adjacency matrix
optional length n population vector; if provided, preserves population-weighted means rather than simple means
weight on spatial smoothness
small ridge for numerical stability (needed because L is singular)