Skip to contents

Aggregate anchor fields with optional Laplacian smoothing

Usage

dkge_anchor_aggregate(anchor_list, subj_weights = NULL, L = NULL, lambda = 0)

Arguments

anchor_list

List of anchor-valued vectors (length `Q`).

subj_weights

Optional subject weights applied during the average.

L

Optional graph Laplacian for Tikhonov regularisation.

lambda

Non-negative smoothing parameter. `0` disables smoothing.

Value

A list with the smoothed field `y`, the raw weighted mean `ybar`, `coverage` (weighted contribution counts), and placeholder `ess` values.

Examples

anchor_list <- list(rnorm(10), rnorm(10), rnorm(10))
agg <- dkge_anchor_aggregate(anchor_list)
length(agg$y)
#> [1] 10