Skip to contents

Looks up, without fitting anything, what EDI's validity registry says about how an inference procedure behaves for an inference class on a design: its regime ("asymptotic": valid as the effective sample size grows, so small-sample excess is expected; "finite_sample": valid at every sample size by construction), the expected order of the size error, the rule for the effective sample size, the regularity of the problem, and the basis and reference of each claim.

Usage

get_inference_procedure_validity(design, inference_class, procedure = NULL)

Arguments

design

A design class name such as "DesignFixedBernoulli". The calibration study's label "DesignFixedBernoulli@prob_T=0.2" selects the unequal-allocation entries. A Design object is also accepted; its realised data then fill in n_eff.

inference_class

The name of a concrete inference class, such as "InferenceContinLin".

procedure

NULL (default) for every procedure the class supports by default, otherwise one or more procedure labels as used in the method column of run_all_inference() results, such as "wald", "rand" or "bootstrap".

Value

A list with elements

expectation

A data frame with one row per procedure: design, class, procedure, supported, regime, size_order (the size error is O(n_eff^-size_order); Inf for exact procedures, NA when unknown), size_order_label (the same, rendered), bias_order, n_eff_rule, n_eff (realised value, or NA), regularity, basis, reference, bias_basis, bias_reference, and the registry layer that supplied each field.

measured

Measured size, coverage and bias from calibration campaigns. NULL in this version: none are shipped yet.

measured_note

A sentence saying why measured is NULL, or NULL when it is not.

Details

For the same lookup on a fitted object, including the realised effective sample size of its data, use the method get_procedure_validity() of the inference object.

Without a design object there is no data, so n_eff is NA; n_eff_rule still names the rule (for example "n_pairs"). Which procedures a class supports is decided from its capabilities only; a specific design or object can rule out more. With an explicit procedure the registry expectation is returned even if the class does not support it (supported is then FALSE).

Values with basis "assumed_default" are the regular-parametric-model default for the procedure, not something established for this class; basis "unknown" means the order is not known (size_order is NA).

See also

run_all_inference for the same information as columns of a fitted comparison.

Examples

v = get_inference_procedure_validity("DesignFixedBernoulli", "InferenceContinLin")
v$expectation[, c("procedure", "regime", "size_order_label", "n_eff_rule")]
#>                    procedure        regime size_order_label n_eff_rule
#> 1                       wald    asymptotic      O(n_eff^-1)          n
#> 2                       rand finite_sample            exact          n
#> 3             rand_bootstrap    asymptotic      O(n_eff^-1)          n
#> 4                  jackknife    asymptotic      O(n_eff^-1)          n
#> 5                      score    asymptotic      O(n_eff^-1)          n
#> 6                  lik_ratio    asymptotic      O(n_eff^-1)          n
#> 7                   gradient    asymptotic      O(n_eff^-1)          n
#> 8  lik_ratio_bartlett_approx    asymptotic      O(n_eff^-2)          n
#> 9   lik_ratio_bartlett_exact    asymptotic      O(n_eff^-2)          n
#> 10                param_boot    asymptotic      O(n_eff^-2)          n
#> 11         param_boot_direct    asymptotic      O(n_eff^-1)          n
#> 12                bayes_boot    asymptotic      O(n_eff^-1)          n
#> 13                 bootstrap    asymptotic      O(n_eff^-1)          n
get_inference_procedure_validity(
  "DesignFixedBernoulli@prob_T=0.2", "InferenceContinLin", "wald"
)$expectation$n_eff_rule
#> [1] "n_min_arm"