This document outlines the integration of Bhaskar's critical realism domains into the variable metadata system for Models4PT, while maintaining and enhancing DAGitty’s core functionalities such as exposure, outcome, adjusted, selected, and unobserved variables.
-
Bhaskar's Domains:
- Empirical: Observable and measurable variables.
- Actual: Events that occur but are not necessarily observed.
- Real: Underlying mechanisms or structures that generate events.
-
Existing DAGitty Categories:
- Exposure: Variables marked as causes.
- Outcome: Variables marked as effects.
- Adjusted: Variables adjusted for in analysis.
- Selected: Variables marked as selected.
- Unobserved: Variables considered latent or not directly measured.
Each variable in Models4PT will include:
- Domain: Empirical, Actual, or Real.
- Function: Cause (exposure), Effect (outcome), Adjusted, Selected, or Unobserved.
- Add a
domain
property to nodes with three possible values:Empirical
,Actual
, orReal
. - Retain existing categories (
Exposure
,Outcome
, etc.) and ensure they remain functional with DAGitty's algorithms. - Update the graphical interface to allow assignment of both domain and function metadata for each variable.
- Modify the Variable Properties Panel to include:
- Domain selection (dropdown menu).
- Function assignment (checkboxes or toggles).
- Adjust the coloring logic to visually represent both domain and function:
- Example: Color nodes based on domain (Empirical, Actual, Real) with additional markers for functions like exposure or outcome.
- Update adjustment set and testable implication algorithms to respect the new metadata:
- Allow algorithms to handle variables across domains and their implications on causal paths.
- Ensure backward compatibility with existing DAGitty features.
- Design database schema to store domain and function metadata for variables.
- Allow for retrieval of models with these new properties for analysis and visualization.
- Update user documentation to explain the new variable metadata and its significance in critical realism.
- Provide examples demonstrating how to utilize these features in clinical and research contexts.
- Dynamic Domain Assignment:
- Incorporate rules or machine-learning approaches to suggest domains based on data or context.
- Hierarchy and Submodels:
- Ensure the new metadata system integrates seamlessly with future plans for hierarchical modeling.
- Interactive Visualizations:
- Enable users to toggle between different domain representations and analyze implications.
Integrating Bhaskar’s critical realism domains into Models4PT enhances its capacity to model complex causal structures while retaining the core functionalities of DAGitty. This structured plan ensures that new features are robust, intuitive, and valuable for clinical research.