BF_dist function

Generate bootstrap samples for the bootstrapping Fieller's confidence interval of the penalized inverse-variance weighted (pIVW) method

Generate bootstrap samples for the bootstrapping Fieller's confidence interval of the penalized inverse-variance weighted (pIVW) method

Internal function of the penalized inverse-variance weighted (pIVW) method, which generates bootstrap samples for the bootstrapping Fieller's confidence interval.

BF_dist( object, beta_hat = 0, tau2 = 0, lambda = 1, n_boot = 1000, seed_boot = 1 )

Arguments

  • object: An MRInput object.
  • beta_hat: The causal effect estimate.
  • tau2: The estimated variance of the horizontal pleiotropy.
  • lambda: The penalty parameter in the pIVW estimator. By default, lambda=1.
  • n_boot: The sample size of the bootstrap samples. By default, n_boot=1000.
  • seed_boot: The seed for random sampling in the bootstrap method. By default, seed_boot=1.

Returns

  • z_b: A vector containing the bootstrap samples for the bootstrapping Fieller's confidence interval.
  • Maintainer: Stephen Burgess
  • License: GPL-2 | GPL-3
  • Last published: 2024-04-12

Useful links