Skip to contents

Calculates the collection of diagnostic indices at once

Usage

compute_diagnostic_indices(wdi_data, index = NULL, group_var)

Arguments

wdi_data

A data frame of the indicator data generated by get_wdi_data

index

An optional character string specifying the indicator code Defaults to NULL

group_var

A grouping variable in the WDI data set (e.g., "region" or "income")

Value

A data frame with columns country, country_avg_dist, within_group_dist, sil_width, trend_strength, linearity, curvature, smoothness, crossing_points, flat_spot, and acf.

Examples

pm_diagnostic_metrics <- compute_diagnostic_indices(pm_data, group_var = "region")