w: A vector of observed continuous exposure variable.
c: A data.frame of observed covariates variable.
ci_appr: The causal inference approach.
counter_weight: A weight vector in different situations. If the matching approach is selected, it is an integer data.table of counters. In the case of the weighting approach, it is weight data.table.