disaggregate_covariate: Disaggregate regional means to fine grid, preserving...

View source: R/disaggregate.R

disaggregate_covariateR Documentation

Disaggregate regional means to fine grid, preserving aggregate means

Description

Disaggregate regional means to fine grid, preserving aggregate means

Usage

disaggregate_covariate(
  x_r,
  W,
  adj,
  pop = NULL,
  lambda_smooth = 1,
  lambda_ridge = 1e-04
)

Arguments

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)

Value

A list


rts2 documentation built on Jan. 21, 2026, 1:07 a.m.