Statistics for Dynamic Treatment Regimes and Interference in Dyadic Networks: A Joint Optimization Approach