Skip to contents

InferenceCustomAsymp is intentionally not exported. Extension packages may retrieve it with getFromNamespace("InferenceCustomAsymp", "EDI") while this API is experimental.

Subclasses implement a public fit(estimate_only = FALSE) method and return a named list with the custom-fit result contract:

estimate

Required numeric scalar treatment-effect estimate.

se

Optional numeric scalar standard error. Required for Wald confidence intervals and asymptotic p-values unless estimate_only is TRUE.

df

Optional numeric scalar degrees of freedom. Use NA_real_ for z inference.

model

Optional fitted model object retained for get_mod() and get_summary().

nonestimable_reason

Optional character scalar. When supplied with a non-finite estimate or standard error, EDI records the result as explicitly non-estimable.

Subclasses should use public accessors such as get_analysis_data(), get_response(), get_treatment(), and get_covariates() rather than EDI private fields.

Super class

Inference -> InferenceCustomAsymp

Methods

+ inherited public methods from Inference


InferenceCustomAsymp$fit()

Calls the user-defined fit callback for this custom inference path; see InferenceCustomAsymp.

Usage

InferenceCustomAsymp$fit(estimate_only = FALSE)

Arguments

estimate_only

If TRUE, skip variance calculations.

Returns

A list with fit results.


InferenceCustomAsymp$compute_estimate()

Compute the treatment-effect estimate by delegating to the user-supplied custom estimator. See InferenceCustomRand, InferenceCustomAsymp, and InferenceCustomBoot for related extension classes.

Usage

InferenceCustomAsymp$compute_estimate(estimate_only = FALSE)

Arguments

estimate_only

If TRUE, skip variance calculations.

Returns

The treatment estimate.


InferenceCustomAsymp$compute_asymp_confidence_interval()

Compute asymptotic confidence interval.

Usage

InferenceCustomAsymp$compute_asymp_confidence_interval(alpha = 0.05)

Arguments

alpha

Significance level.

Returns

Confidence interval.


InferenceCustomAsymp$compute_asymp_two_sided_pval()

Compute asymptotic p-value.

Usage

InferenceCustomAsymp$compute_asymp_two_sided_pval(delta = 0)

Arguments

delta

Null treatment effect.

Returns

P-value.


InferenceCustomAsymp$clone()

The objects of this class are cloneable with this method.

Usage

InferenceCustomAsymp$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.