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: NamedTuple

Container for continuous treatment dose-response results.

This class implements the maketables plug-in interface for publication-quality tables. See Publication Tables with maketables.

Attributes:
dosenumpy.ndarray

Vector containing the values of the dose used in estimation.

overall_attfloat

Estimate of the overall ATT, the mean of ATT(D) given D > 0.

overall_att_sefloat

The standard error of the estimate of overall_att.

overall_att_inf_funcnumpy.ndarray

The influence function for estimating overall_att.

overall_acrtfloat

Estimate of the overall ACRT, the mean of ACRT(D|D) given D > 0.

overall_acrt_sefloat

The standard error for the estimate of overall_acrt.

overall_acrt_inf_funcnumpy.ndarray

The influence function for estimating overall_acrt.

att_dnumpy.ndarray

Estimates of ATT(d) for each value of dose.

att_d_senumpy.ndarray

Standard error of ATT(d) for each value of dose.

att_d_crit_valfloat

Critical value to produce pointwise or uniform confidence interval for ATT(d).

att_d_inf_funcnumpy.ndarray

Matrix containing the influence function from estimating ATT(d).

acrt_dnumpy.ndarray

Estimates of ACRT(d) for each value of dose.

acrt_d_senumpy.ndarray

Standard error of ACRT(d) for each value of dose.

acrt_d_crit_valfloat

Critical value to produce pointwise or uniform confidence interval for ACRT(d).

acrt_d_inf_funcnumpy.ndarray

Matrix containing the influence function from estimating ACRT(d).

pte_paramsobject

A PTEParams object containing other parameters passed to the function.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

acrt_d

Estimates of ACRT(d) for each value of dose.

acrt_d_crit_val

Critical value for ACRT(d) confidence intervals.

acrt_d_inf_func

Influence function matrix for ACRT(d).

acrt_d_se

Standard errors of ACRT(d) for each value of dose.

att_d

Estimates of ATT(d) for each value of dose.

att_d_crit_val

Critical value for ATT(d) confidence intervals.

att_d_inf_func

Influence function matrix for ATT(d).

att_d_se

Standard errors of ATT(d) for each value of dose.

dose

Values of the dose used in estimation.

overall_acrt

Estimate of the overall ACRT.

overall_acrt_inf_func

Influence function for estimating overall ACRT.

overall_acrt_se

Standard error of the overall ACRT estimate.

overall_att

Estimate of the overall ATT.

overall_att_inf_func

Influence function for estimating overall ATT.

overall_att_se

Standard error of the overall ATT estimate.

pte_params

PTEParams object containing estimation settings.