You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Better docs: updated the method signature and docstrings for estimator classes (#389)
* updated the method signature and docstrings for estimator classes
* bug fixes
* updated the args passing
* fixed the bug in refutation test calls for num_ci_simulations
* used std init args
* updated num simulations to pass weighting test
:param control_value: Value of the treatment in the control group, for effect estimation. If treatment is multi-variate, this can be a list.
57
66
:param treatment_value: Value of the treatment in the treated group, for effect estimation. If treatment is multi-variate, this can be a list.
58
-
:param test_significance: Binary flag or a string indicating whether to test significance and by which method. All estimators support test_significance="bootstrap" that estimates a p-value for the obtained estimate using the bootstrap method. Individual estimators can override this to support custom testing methods. The bootstrap method supports an optional parameter, num_null_simulations that can be specified through the params dictionary. If False, no testing is done. If True, significance of the estimate is tested using the custom method if available, otherwise by bootstrap.
67
+
:param test_significance: Binary flag or a string indicating whether to test significance and by which method. All estimators support test_significance="bootstrap" that estimates a p-value for the obtained estimate using the bootstrap method. Individual estimators can override this to support custom testing methods. The bootstrap method supports an optional parameter, num_null_simulations. If False, no testing is done. If True, significance of the estimate is tested using the custom method if available, otherwise by bootstrap.
59
68
:param evaluate_effect_strength: (Experimental) whether to evaluate the strength of effect
60
69
:param confidence_intervals: Binary flag or a string indicating whether the confidence intervals should be computed and which method should be used. All methods support estimation of confidence intervals using the bootstrap method by using the parameter confidence_intervals="bootstrap". The bootstrap method takes in two arguments (num_simulations and sample_size_fraction) that can be optionally specified in the params dictionary. Estimators may also override this to implement their own confidence interval method. If this parameter is False, no confidence intervals are computed. If True, confidence intervals are computed by the estimator's specific method if available, otherwise through bootstrap.
61
70
:param target_units: The units for which the treatment effect should be estimated. This can be a string for common specifications of target units (namely, "ate", "att" and "atc"). It can also be a lambda function that can be used as an index for the data (pandas DataFrame). Alternatively, it can be a new DataFrame that contains values of the effect_modifiers and effect will be estimated only for this new data.
62
-
:param effect_modifiers: Variables on which to compute separate effects, or return a heterogeneous effect function. Not all methods support this currently.
num_null_simulations: The number of simulations for testing the statistical significance of the estimator
65
-
num_simulations: The number of simulations for finding the confidence interval (and/or standard error) for a estimate
66
-
sample_size_fraction: The size of the sample for the bootstrap estimator
67
-
confidence_level: The confidence level of the confidence interval estimate
68
-
num_quantiles_to_discretize_cont_cols: The number of quantiles into which a numeric effect modifier is split, to enable estimation of conditional treatment effect over it.
71
+
:param effect_modifiers: Variables on which to compute separate
72
+
effects, or return a heterogeneous effect function. Not all
73
+
methods support this currently.
74
+
:param num_null_simulations: The number of simulations for testing the
75
+
statistical significance of the estimator
76
+
:param num_simulations: The number of simulations for finding the
77
+
confidence interval (and/or standard error) for a estimate
78
+
:param sample_size_fraction: The size of the sample for the bootstrap
79
+
estimator
80
+
:param confidence_level: The confidence level of the confidence
81
+
interval estimate
82
+
:param need_conditional_estimates: Boolean flag indicating whether
83
+
conditional estimates should be computed. Defaults to True if
84
+
there are effect modifiers in the graph
85
+
:param num_quantiles_to_discretize_cont_cols: The number of quantiles
86
+
into which a numeric effect modifier is split, to enable
87
+
estimation of conditional treatment effect over it.
raiseValueError("Need to specify the family for the generalized linear model. Provide a 'glm_family' parameter in method_params, such as statsmodels.api.families.Binomial() for logistic regression.")
0 commit comments