Skip to contents

Abstract class for asymptotic inference.

Methods

+ inherited public methods from InferenceJackknife
+ inherited public methods from InferenceBayesianBootstrap
+ inherited public methods from InferenceRandBootstrapCI
+ inherited public methods from InferenceRandBootstrap
+ inherited public methods from InferenceNonParamBootstrap
+ inherited public methods from InferenceRandCI
  • InferenceRandCI$compute_rand_confidence_interval()
  • InferenceRandCI$compute_rand_two_sided_pval()
+ inherited public methods from InferenceRand
+ inherited public methods from Inference


InferenceAsymp$compute_asymp_confidence_interval()

Computes an asymptotic confidence interval for the treatment effect using the configured large-sample test. For the default Wald path, the method first calls compute_estimate(), retrieves the class-specific standard error, and forms a normal or t interval around the estimate. Likelihood-backed subclasses may override the dispatch; see InferenceAsympLik.

Usage

InferenceAsymp$compute_asymp_confidence_interval(alpha = 0.05)

Arguments

alpha

Significance level 1 - alpha. Default 0.05.

Returns

A confidence interval.


InferenceAsymp$compute_asymp_two_sided_pval()

Computes an asymptotic two-sided p-value for the treatment effect using the configured large-sample test. For the default Wald path, the method compares compute_estimate() to the null value delta using the class-specific standard error and a normal or t reference distribution. Likelihood-backed subclasses may override the dispatch; see InferenceAsympLik.

Usage

InferenceAsymp$compute_asymp_two_sided_pval(delta = 0)

Arguments

delta

Null treatment effect to test against. Default 0.

Returns

The asymptotic p-value.


InferenceAsymp$get_supported_testing_types()

Gets the asymptotic testing methods supported by this inference object.

Usage

InferenceAsymp$get_supported_testing_types()


InferenceAsymp$set_testing_type()

Sets the asymptotic testing method used by p-values and CIs. This base (Wald-only) implementation accepts only "wald" and rejects everything else with a clear message; likelihood-tier classes override this with a richer version supporting score/gradient/lik_ratio testing types (see InferenceAsympLik). Without this base method, a Wald-only class (one composing only the Wald component, e.g. a robust-sandwich or Bai-adjusted-t estimator) has no set_testing_type() at all, so calling it fails with an opaque "attempt to apply non-function" instead of a clear rejection.

Usage

InferenceAsymp$set_testing_type(testing_type = "wald")

Arguments

testing_type

One of "wald" for this base implementation (likelihood-tier subclasses accept more values).

Returns

The inference object, invisibly.


InferenceAsymp$compute_wald_two_sided_pval()

Computes the Wald two-sided p-value regardless of configured testing type. This directly uses the treatment estimate, its standard error, and the available degrees of freedom; compare with compute_asymp_two_sided_pval() for configured-test dispatch.

Usage

InferenceAsymp$compute_wald_two_sided_pval(delta = 0)

Arguments

delta

Null treatment effect.


InferenceAsymp$compute_wald_confidence_interval()

Computes the Wald confidence interval regardless of configured testing type. This directly uses the treatment estimate, its standard error, and the available degrees of freedom; compare with compute_asymp_confidence_interval() for configured-test dispatch.

Usage

InferenceAsymp$compute_wald_confidence_interval(alpha = 0.05)

Arguments

alpha

Significance level. Default 0.05.


InferenceAsymp$compute_estimate()

Abstract method to compute the treatment-effect estimate. Concrete subclasses implement the model-specific calculation, such as an MLE coefficient, estimating-equation coefficient, standardized contrast, or rank/statistic-based treatment effect. Related p-value and interval methods call this method before using class-specific uncertainty estimates.

Usage

InferenceAsymp$compute_estimate(estimate_only = FALSE)

Arguments

estimate_only

If TRUE, skip variance component calculations.

Returns

A scalar treatment estimate.


InferenceAsymp$get_mod()

Returns the model object from the last call that produced the treatment estimate and SE. Calls compute_estimate() first if needed.

Usage

InferenceAsymp$get_mod()

Returns

The cached model object (type depends on the concrete class).


InferenceAsymp$get_summary()

Prints a summary of the model from the last call that produced the treatment estimate and SE.

Usage

InferenceAsymp$get_summary()


InferenceAsymp$clone()

The objects of this class are cloneable with this method.

Usage

InferenceAsymp$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.