- G
Exposures, a numeric vector, matrix, or data frame. Categorical variable
should be transformed into dummy variables. If a matrix or data frame, rows
represent observations and columns correspond to variables.
- Z
Omics data: for LUCID early integration, a numeric matrix/data frame; for LUCID in
parallel, a list of numeric matrices/data frames. Rows correspond to observations
and columns correspond to variables.
- Y
Outcome, a numeric vector. Categorical variable is not allowed. Binary
outcome should be coded as 0 and 1.
- lucid_model
Optional; "early", "parallel", or "serial". Auto-detected
from class(model) when omitted (the normal case), so this rarely
needs to be set explicitly -- it exists for backward compatibility with
scripts written before auto-detection. If supplied, it is cross-checked
against model's actual class and an error is raised on a mismatch.
Bootstrap inference is implemented for all three model types.
- CoG
Optional, covariates to be adjusted for estimating the latent cluster.
A numeric vector, matrix or data frame. Categorical variable should be transformed
into dummy variables.
- CoY
Optional, covariates to be adjusted for estimating the association
between latent cluster and the outcome. A numeric vector, matrix or data frame.
Categorical variable should be transformed into dummy variables.
- model
A LUCID model fitted by estimate_lucid.
If the fitted model uses nonzero penalties, boot_lucid will
automatically refit a zero-penalty model as fallback because bootstrap
inference is only supported for Rho_G = Rho_Z_Mu = Rho_Z_Cov = 0.
- conf
A numeric scalar between 0 and 1 to specify confidence level(s)
of the required interval(s).
- R
An integer to specify number of bootstrap replicates for LUCID model.
If feasible, it is recommended to set R >= 1000.
- verbose
A flag indicates whether detailed information
is printed in console. Default is FALSE.
- min_valid
Minimum number of bootstrap replicates that must yield finite
estimates before confidence limits can be formed. The default, 2, is the
mathematical floor. Replicates that fail are counted and warned about, and a
small number of replicates raises a warning that the limits are unstable, but
neither suppresses the limits; only fewer than min_valid surviving
replicates yields NA limits.