moderndid.didcont.DoseResult#
- class moderndid.didcont.DoseResult(dose: np.ndarray, overall_att: float | None = None, overall_att_se: float | None = None, overall_att_inf_func: np.ndarray | None = None, overall_acrt: float | None = None, overall_acrt_se: float | None = None, overall_acrt_inf_func: np.ndarray | None = None, att_d: np.ndarray | None = None, att_d_se: np.ndarray | None = None, att_d_crit_val: float | None = None, att_d_inf_func: np.ndarray | None = None, acrt_d: np.ndarray | None = None, acrt_d_se: np.ndarray | None = None, acrt_d_crit_val: float | None = None, acrt_d_inf_func: np.ndarray | None = None, pte_params: object | None = None)[source]#
Bases:
NamedTupleContainer for continuous treatment dose-response results.
This class implements the
maketablesplug-in interface for publication-quality tables. See Publication Tables with maketables.- Attributes:
- dose
numpy.ndarray Vector containing the values of the dose used in estimation.
- overall_att
float Estimate of the overall ATT, the mean of ATT(D) given D > 0.
- overall_att_se
float The standard error of the estimate of overall_att.
- overall_att_inf_func
numpy.ndarray The influence function for estimating overall_att.
- overall_acrt
float Estimate of the overall ACRT, the mean of ACRT(D|D) given D > 0.
- overall_acrt_se
float The standard error for the estimate of overall_acrt.
- overall_acrt_inf_func
numpy.ndarray The influence function for estimating overall_acrt.
- att_d
numpy.ndarray Estimates of ATT(d) for each value of dose.
- att_d_se
numpy.ndarray Standard error of ATT(d) for each value of dose.
- att_d_crit_val
float Critical value to produce pointwise or uniform confidence interval for ATT(d).
- att_d_inf_func
numpy.ndarray Matrix containing the influence function from estimating ATT(d).
- acrt_d
numpy.ndarray Estimates of ACRT(d) for each value of dose.
- acrt_d_se
numpy.ndarray Standard error of ACRT(d) for each value of dose.
- acrt_d_crit_val
float Critical value to produce pointwise or uniform confidence interval for ACRT(d).
- acrt_d_inf_func
numpy.ndarray Matrix containing the influence function from estimating ACRT(d).
- pte_params
object A PTEParams object containing other parameters passed to the function.
- dose
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
Estimates of ACRT(d) for each value of dose.
Critical value for ACRT(d) confidence intervals.
Influence function matrix for ACRT(d).
Standard errors of ACRT(d) for each value of dose.
Estimates of ATT(d) for each value of dose.
Critical value for ATT(d) confidence intervals.
Influence function matrix for ATT(d).
Standard errors of ATT(d) for each value of dose.
Values of the dose used in estimation.
Estimate of the overall ACRT.
Influence function for estimating overall ACRT.
Standard error of the overall ACRT estimate.
Estimate of the overall ATT.
Influence function for estimating overall ATT.
Standard error of the overall ATT estimate.
PTEParams object containing estimation settings.