
Internal base for user-defined asymptotic inference extensions
Source:R/inference_custom_extensions.R
InferenceCustomAsymp.RdInferenceCustomAsymp 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:
estimateRequired numeric scalar treatment-effect estimate.
seOptional numeric scalar standard error. Required for Wald confidence intervals and asymptotic p-values unless
estimate_onlyisTRUE.dfOptional numeric scalar degrees of freedom. Use
NA_real_for z inference.modelOptional fitted model object retained for
get_mod()andget_summary().nonestimable_reasonOptional 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
Inference$capabilities()Inference$compute_exact_confidence_interval()Inference$compute_exact_two_sided_pval_for_treatment_effect()Inference$duplicate()Inference$get_analysis_data()Inference$get_covariates()Inference$get_design_object()Inference$get_model_formula()Inference$get_nonestimable_reason()Inference$get_nonestimable_stage()Inference$get_optimization_alg()Inference$get_response()Inference$get_response_type()Inference$get_treatment()Inference$initialize()Inference$is_nonestimable()Inference$set_optimization_alg()Inference$set_seed()Inference$supports()
InferenceCustomAsymp$fit()
Calls the user-defined fit callback for this custom inference path; see
InferenceCustomAsymp.
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.