gws_design_of_experiments

Introduction
Getting Started
Technical documentations
Version

Generate causal effect dashboard app

TASK
Typing name :  TASK.gws_design_of_experiments.GenerateCausalEffectDashboard Brick :  gws_design_of_experiments

Task that generates an interactive Streamlit dashboard for visualizing and exploring causal effect analysis results from the CausalEffect task.

This task creates a dashboard that allows users to interactively explore the Conditional Average Treatment Effects (CATE) computed by the CausalEffect task. The dashboard provides multiple visualization modes and filtering options to help understand the causal relationships in your data.

What this task does:

  • Takes the results folder from a CausalEffect task as input
  • Generates an interactive Streamlit application
  • Provides multiple visualization tabs for exploring causal effects
  • Allows dynamic filtering and selection of results
  • Displays heatmaps, bar plots, and clustermaps of causal effects

Input Requirements:

  • folder: The results folder generated by a CausalEffect task, containing, for each target variable combination:
    • CSV files with causal effect estimates
    • PNG heatmap files

Dashboard Features: The generated dashboard includes:

  1. Interactive Filters:

    • Choose target variable combinations to display
    • Filter treatments (automatically excludes treatments with zero effects)
    • Select specific targets within combinations
  2. Visualization Tabs:

    • *� Heatmap: Interactive color-coded matrix showing treatment effects
    • *� Barplot: Grouped bar chart comparing effects across treatments and targets
    • *� Clustermap: Hierarchically clustered heatmap for pattern discovery
  3. Data Transformations:

    • Automatic log transformation of effect sizes for better visualization
    • Color scaling centered around zero to highlight positive/negative effects
    • Statistical filtering to focus on meaningful non-zero effects

Output:

  • streamlit_app: A StreamlitResource

Usage Workflow:

  1. Run CausalEffect task on your data to generate causal effect estimates
  2. Connect the results folder to this GenerateCausalEffectDashboard task
  3. Launch the generated Streamlit app to interactively explore your results
  4. Use the dashboard to identify significant causal relationships and patterns

Input

Folder

Output

Streamlit app
Streamlit app