Learn R Programming

BayesianDisaggregation (version 0.1.2)

stability_composite: Composite stability score (numerical and temporal)

Description

Convex combination of numerical and temporal stability: $$0.6 \cdot \mathrm{numerical\_stability\_exp}(W) + 0.4 \cdot \mathrm{temporal\_stability}(W).$$

Usage

stability_composite(W, a = 1000, b = 10, kappa = 50)

Value

Scalar composite stability score in \([0,1]\).

Arguments

W

Posterior matrix (\(T \times K\)).

a

Sensitivity for row-sum deviation in numerical part (default 1000).

b

Sensitivity for negatives in numerical part (default 10).

kappa

Sensitivity for temporal smoothness (default 50).

See Also

numerical_stability_exp, temporal_stability

Examples

Run this code
W <- matrix(runif(20), 5); W <- W/rowSums(W)
stability_composite(W)

Run the code above in your browser using DataLab