Learn R Programming

rts2 (version 0.10.2)

disaggregate_covariate: 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
)

Value

A list

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)