bootci_coeff_binary {tvmediation} | R Documentation |
Bootstrap samples to estimate confidence intervals for binary outcome coefficients.
Description
Internal function for estimating bootstrapped confidence intervals for the coefficients of the mediation model for a binary outcome.
Usage
bootci_coeff_binary(
treatment,
t.seq,
m,
outcome,
span = 0.75,
replicates = 1000
)
Arguments
treatment |
a vector indicating treatment group |
t.seq |
a vector of unique time points for each observation |
m |
matrix of mediator values in wide format |
outcome |
matrix of outcome values in wide format |
span |
Numeric value of the span to be used for LOESS regression. Default = 0.75. |
replicates |
Number of replicates for bootstrapping confidence intervals. Default = 1000. |
Value
t.seq |
time points of estimation |
CI.lower.a |
CI lower limit for alpha_hat |
CI.upper.a |
CI upper limit for alpha_hat |
CI.lower.g |
CI lower limit for gamma_hat |
CI.upper.g |
CI upper limit for gamma_hat |
CI.lower.b |
CI lower limit for beta_hat |
CI.upper.b |
CI upper limit for beta_hat |
CI.lower.t |
CI lower limit for tau_hat |
CI.upper.t |
CI upper limit for tau_hat |
[Package tvmediation version 1.1.0 Index]