
G-Computation Risk-Difference Inference for Binary Responses
Source:R/inference_incidence_gcomp.R
InferenceIncidGCompRiskDiff.RdFits a logistic working model, \(\mathrm{logit}\,\Pr(Y_i=1\mid x_i) =
x_i^\top\hat\beta\), for an incidence outcome using treatment and, optionally,
all recorded covariates, then estimates the marginal (standardized) risk
difference \(\mathrm{RD} = \overline{\mathrm{risk}}_1 -
\overline{\mathrm{risk}}_0\) by G-computation: setting every subject's
treatment indicator to 1 (respectively 0) while holding their other observed
covariates fixed, averaging the model-implied risk over the empirical
covariate distribution under each counterfactual, and differencing — see
gcomp_logistic_point_estimate_cpp for the exact standardization
formula. Wald inference uses the fitted logistic model's sandwich covariance
and the delta method. This standard error conditions on the observed
covariates used for standardization: it quantifies uncertainty in the
fitted coefficients for the sample-conditional standardized risk
difference, and does not add sampling variability from a target population's
covariate distribution. Bootstrap, randomization, and jackknife methods
remain available. likelihood_tier = "none" means that this class
does not provide likelihood-ratio or score tests; it does not preclude its
Wald inference.
Uses the shared nonparametric bootstrap distribution contract; see
InferenceNonParamBootstrap.
Computes a bootstrap confidence interval for the treatment effect.
Computes a bootstrap two-sided p-value for the treatment effect.
Computes a Bayesian-bootstrap two-sided p-value for the treatment effect.
Computes a Bayesian-bootstrap confidence interval for the treatment effect.
Computes a jackknife-Wald two-sided p-value for the treatment effect.
Computes a jackknife-Wald confidence interval for the treatment effect.
Computes a PRW subsampling two-sided p-value for the treatment effect.
Computes a PRW subsampling confidence interval for the treatment effect.
Computes an m-out-of-n bootstrap two-sided p-value for the treatment effect.
Computes an m-out-of-n bootstrap confidence interval for the treatment effect.
See also
InferenceIncidGCompRiskRatio
for the risk-ratio version of this same standardized logistic working model.
Super class
Inference -> InferenceIncidGCompRiskDiff
Methods
Public methods
InferenceIncidGCompRiskDiff$approximate_bootstrap_distribution_beta_hat_T()InferenceIncidGCompRiskDiff$compute_bootstrap_confidence_interval()InferenceIncidGCompRiskDiff$compute_bootstrap_two_sided_pval()InferenceIncidGCompRiskDiff$compute_bayesian_bootstrap_two_sided_pval()InferenceIncidGCompRiskDiff$compute_bayesian_bootstrap_confidence_interval()InferenceIncidGCompRiskDiff$compute_jackknife_wald_two_sided_pval()InferenceIncidGCompRiskDiff$compute_jackknife_wald_confidence_interval()InferenceIncidGCompRiskDiff$compute_subsampling_two_sided_pval()InferenceIncidGCompRiskDiff$compute_subsampling_confidence_interval()InferenceIncidGCompRiskDiff$compute_m_out_of_n_bootstrap_two_sided_pval()InferenceIncidGCompRiskDiff$compute_m_out_of_n_bootstrap_confidence_interval()
+ inherited public methods from Inference
Inference$capabilities()Inference$compute_asymp_confidence_interval()Inference$compute_asymp_two_sided_pval()Inference$compute_estimate()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()
InferenceIncidGCompRiskDiff$approximate_bootstrap_distribution_beta_hat_T()
Usage
InferenceIncidGCompRiskDiff$approximate_bootstrap_distribution_beta_hat_T(
B = 501,
show_progress = TRUE,
debug = FALSE,
bootstrap_type = NULL
)Arguments
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
debugWhether to return diagnostics.
bootstrap_typeOptional resampling scheme.
bootstrap_typeOptional empirical-resampling scheme.
bootstrap_typeOptional empirical-resampling scheme.
InferenceIncidGCompRiskDiff$compute_bootstrap_confidence_interval()
Usage
InferenceIncidGCompRiskDiff$compute_bootstrap_confidence_interval(
alpha = 0.05,
B = 501,
type = NULL,
na.rm = TRUE,
show_progress = TRUE,
min_number_usable_samples = 5L
)Arguments
alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
alphaSignificance level. Default
0.05.alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
InferenceIncidGCompRiskDiff$compute_bootstrap_two_sided_pval()
Usage
InferenceIncidGCompRiskDiff$compute_bootstrap_two_sided_pval(
delta = NULL,
B = 501,
type = "symmetric",
na.rm = FALSE,
show_progress = TRUE,
min_number_usable_samples = 5L
)Arguments
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
InferenceIncidGCompRiskDiff$compute_bayesian_bootstrap_two_sided_pval()
Usage
InferenceIncidGCompRiskDiff$compute_bayesian_bootstrap_two_sided_pval(
delta = NULL,
B = 501,
type = NULL,
na.rm = FALSE,
show_progress = TRUE,
min_number_usable_samples = 5L,
weighting_unit_type = NULL
)Arguments
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
weighting_unit_typeOptional resampling unit override.
weighting_unit_typeOptional resampling unit override.
InferenceIncidGCompRiskDiff$compute_bayesian_bootstrap_confidence_interval()
Usage
InferenceIncidGCompRiskDiff$compute_bayesian_bootstrap_confidence_interval(
alpha = 0.05,
B = 501,
type = NULL,
na.rm = TRUE,
show_progress = TRUE,
min_number_usable_samples = 5L,
weighting_unit_type = NULL
)Arguments
alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
alphaSignificance level. Default
0.05.alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
na.rmWhether to remove non-finite bootstrap replicates.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
weighting_unit_typeOptional resampling unit override.
weighting_unit_typeOptional resampling unit override.
InferenceIncidGCompRiskDiff$compute_jackknife_wald_two_sided_pval()
Usage
InferenceIncidGCompRiskDiff$compute_jackknife_wald_two_sided_pval(
delta = NULL,
unit = "auto"
)Arguments
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
unitDeletion unit. Default
"auto".unitDeletion unit. Default
"auto".
InferenceIncidGCompRiskDiff$compute_jackknife_wald_confidence_interval()
InferenceIncidGCompRiskDiff$compute_subsampling_two_sided_pval()
Usage
InferenceIncidGCompRiskDiff$compute_subsampling_two_sided_pval(
delta = NULL,
B = 501,
b = NULL,
type = "centered",
show_progress = TRUE,
min_number_usable_samples = 5L,
subsampling_type = NULL
)Arguments
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
bSubsample size. See
InferenceNonParamBootstrap$compute_subsampling_two_sided_pval.bSubsample size. See
InferenceNonParamBootstrap$compute_subsampling_confidence_interval.typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
subsampling_typeOptional empirical-resampling scheme.
subsampling_typeOptional empirical-resampling scheme.
InferenceIncidGCompRiskDiff$compute_subsampling_confidence_interval()
Usage
InferenceIncidGCompRiskDiff$compute_subsampling_confidence_interval(
alpha = 0.05,
B = 501,
b = NULL,
type = "basic",
show_progress = TRUE,
min_number_usable_samples = 5L,
subsampling_type = NULL
)Arguments
alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
alphaSignificance level. Default
0.05.alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
bSubsample size. See
InferenceNonParamBootstrap$compute_subsampling_two_sided_pval.bSubsample size. See
InferenceNonParamBootstrap$compute_subsampling_confidence_interval.typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
subsampling_typeOptional empirical-resampling scheme.
subsampling_typeOptional empirical-resampling scheme.
InferenceIncidGCompRiskDiff$compute_m_out_of_n_bootstrap_two_sided_pval()
Usage
InferenceIncidGCompRiskDiff$compute_m_out_of_n_bootstrap_two_sided_pval(
delta = NULL,
B = 501,
m = NULL,
type = "centered",
show_progress = TRUE,
min_number_usable_samples = 5L,
bootstrap_type = NULL
)Arguments
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaThe null treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
deltaNull treatment effect. Defaults to 0 for RD and 1 for RR.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
mResample size. See
InferenceNonParamBootstrap$compute_m_out_of_n_bootstrap_two_sided_pval.mResample size. See
InferenceNonParamBootstrap$compute_m_out_of_n_bootstrap_confidence_interval.typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
bootstrap_typeOptional resampling scheme.
bootstrap_typeOptional empirical-resampling scheme.
bootstrap_typeOptional empirical-resampling scheme.
InferenceIncidGCompRiskDiff$compute_m_out_of_n_bootstrap_confidence_interval()
Usage
InferenceIncidGCompRiskDiff$compute_m_out_of_n_bootstrap_confidence_interval(
alpha = 0.05,
B = 501,
m = NULL,
type = "basic",
show_progress = TRUE,
min_number_usable_samples = 5L,
bootstrap_type = NULL
)Arguments
alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
alphaSignificance level. Default
0.05.alphaSignificance level. Default 0.05.
alphaSignificance level. Default 0.05.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of Bayesian-bootstrap samples.
BNumber of subsamples.
BNumber of subsamples.
BNumber of resamples.
BNumber of resamples.
mResample size. See
InferenceNonParamBootstrap$compute_m_out_of_n_bootstrap_two_sided_pval.mResample size. See
InferenceNonParamBootstrap$compute_m_out_of_n_bootstrap_confidence_interval.typeBootstrap CI type. See
InferenceNonParamBootstrap$compute_bootstrap_confidence_interval.typeBootstrap p-value type. See
InferenceNonParamBootstrap$compute_bootstrap_two_sided_pval.typeBayesian-bootstrap p-value type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_two_sided_pval.typeBayesian-bootstrap CI type. See
InferenceBayesianBootstrap$compute_bayesian_bootstrap_confidence_interval.typeP-value type.
typeConfidence-interval type.
typeP-value type.
typeConfidence-interval type.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
show_progressWhether to show a progress bar.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite bootstrap samples required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite subsampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
min_number_usable_samplesMinimum number of finite resampled estimates required.
bootstrap_typeOptional resampling scheme.
bootstrap_typeOptional empirical-resampling scheme.
bootstrap_typeOptional empirical-resampling scheme.
Examples
# \donttest{
seq_des = DesignSeqOneByOneBernoulli$new(n = 10, response_type = 'incidence')
for (i in 1:10) {
seq_des$add_one_subject_to_experiment_and_assign(data.frame(x1 = rnorm(1)))
}
seq_des$add_all_subject_responses(rbinom(10, 1, 0.5))
inf = InferenceIncidGCompRiskDiff$new(seq_des)
inf$compute_estimate()
#> [1] -0.1666667
# }