Skip to contents

Fine-mapping of aggregated binary functional data with a binomial-logistic likelihood, a Gaussian variational approximation for the latent log-odds, and an inner [susiF()] fit for the structured genetic mean.

Usage

Binomial_fSuSiE(
  Y,
  trials,
  X,
  L = 3,
  reflect = FALSE,
  maxit_outer = 20,
  maxit_inner = 10,
  tol = 0.001,
  outer_tol = 0.001,
  stable_iterations = 2L,
  sigma2_subcycles = 5L,
  s2 = 0.5,
  estimate_sigma2 = TRUE,
  warm_start_sigma2 = TRUE,
  quadrature_order = 20L,
  solver_failure = c("error", "empirical_logit"),
  control_mixsqp = list(verbose = FALSE, eps = 1e-06, numiter.em = 4),
  nullweight = 10,
  cov_lev = 0.95,
  min_purity = 0.5,
  cor_small = FALSE,
  post_processing = "smash",
  thresh_lowcount = 0,
  filter.number = 10,
  family = "DaubLeAsymm",
  verbose = TRUE,
  diagnostic_plot = FALSE,
  True_probability = NULL,
  Z = NULL,
  update_Mu_each_iter = TRUE
)

Arguments

Y

N by T numeric matrix of integer success counts.

trials

A positive integer scalar, a length-N vector, or an N by T matrix giving the corresponding trial totals. The success counts and trial totals, rather than their ratio, must be supplied.

X

N by J numeric covariate matrix.

L

Upper bound on the number of single effects.

reflect

Logical; mirror observations before wavelet processing. Reflection is enabled automatically when `ncol(Y)` is not a power of two.

maxit_outer

Maximum number of split-VA outer iterations.

maxit_inner

Maximum number of inner [susiF()] iterations.

tol

Positive convergence tolerance forwarded to [susiF()].

outer_tol

Positive tolerance for the maximum relative change in the latent mean, structured mean, and splitting variance.

stable_iterations

Number of consecutive stable outer iterations required for convergence.

sigma2_subcycles

Non-negative number of conditional latent-moment and splitting-variance subcycles before each Gaussian fSuSiE update. The first outer iteration uses at most one subcycle.

s2

Positive initial splitting variance on the latent log-odds scale.

estimate_sigma2

Logical; estimate the splitting variance when `TRUE`. Set this to `FALSE` to keep it fixed at `s2`, particularly when trial totals are mostly one and the variance is weakly identified.

warm_start_sigma2

Logical; initialize the splitting variance from an empirical-logit fSuSiE fit when possible. Ignored if `estimate_sigma2 = FALSE`.

quadrature_order

Positive integer number of Gauss–Hermite nodes used for logistic-normal expectations.

solver_failure

Either `"error"` or `"empirical_logit"`. The latter records a failed local update and substitutes a finite empirical logit.

control_mixsqp, nullweight, cov_lev, min_purity, cor_small, post_processing, thresh_lowcount

Forwarded to [susiF()]. `post_processing = "none"` is not supported.

filter.number, family

Wavelet filter passed to [susiF()].

verbose

Logical; report outer-iteration progress.

diagnostic_plot

Logical; draw diagnostic plots each outer iteration.

True_probability

Optional N by T matrix of true probabilities, used only for diagnostic plots.

Z

Reserved for future dense-covariate support. Must be `NULL`.

update_Mu_each_iter

Logical; update latent Gaussian moments in every outer iteration. Setting this to `FALSE` is intended for debugging.

Value

A list with latent and structured posterior moments, fitted probabilities and success counts, the splitting variance, convergence diagnostics, and the inner `susiF.obj`.

Details

The fitted model is $$Y_{it} \mid \mu_{it} \sim \mathrm{Binomial}(n_{it},\mathrm{logit}^{-1}(\mu_{it})),$$ $$\mu_{it} \mid B_{it} \sim N(B_{it},\sigma^2),$$ where `B` has the sum-of-single-functions prior implemented by [susiF()]. The local variational distribution is Gaussian. Logistic-normal expectations and their derivatives are evaluated with Gauss–Hermite quadrature. The Gaussian block centers but does not scale the latent response and holds its residual variance fixed at the current `sigma2`.

Estimating `sigma2` from Bernoulli data can be weakly identified. At a zero latent prior mean, the marginal success probability is one half for every symmetric logistic-normal variance. Replicated trials add the extra-binomial component needed to learn latent heterogeneity. The function warns when all trial totals equal one.

See also

[susiF()], [Pois_fSuSiE()], [vga_binomial_solver()]