plot_metric_comparison: Plot metric values for comparison

plot_metric_comparisonR Documentation

Plot metric values for comparison

Description

Creates a comparison plot of different metrics across different treatment rule estimation methods.

Usage

plot_metric_comparison(
  data,
  metrics = c("policy_value", "constraint"),
  techniques = NULL,
  root.path
)

Arguments

data

A tibble or data frame with two columns:

method

A character vector indicating the estimation method (e.g., "Theta_0", "Theta_naive", etc.).

metric1

A numeric vector containing the corresponding metric1 values for each method.

metric2

A numeric vector containing the corresponding metric2 values for each method.

metrics

A vector containing the metrics to be represented.

techniques

A vector containing the names of the techniques to be represented.

root.path

Path to the folder where images are to be saved.

Details

The function takes a data frame with method names and corresponding policy values, constraints, etc. (typically including Theta_0, Theta_naive, Theta_final, and Theta_oracular) and generates a visual comparison (e.g., bar plot or point plot).

Value

Saves a plot to "Images/"Comparison_techniques.pdf".


PLUCR documentation built on March 30, 2026, 5:08 p.m.