powered by
sim_rct_biomarker is used to simulate clinical trial data with specified treatment, prognostic, and predictive effect sizes.
sim_rct_biomarker
sim_rct_biomarker(n = 50, p = 100, p_prog = 5, p_pred = 5, p_both = 5, v_trt = 0.4, v_prog = 0.2, v_pred = 0.2, v_err = 0.2, corr = NULL, family = "gaussian", ...)
Number of subjects.
Number of biomarkers.
Number of biomarkers with prognostic effects only.
Number of biomarkers with predictive effects only.
Number of biomarkers with both prognostic and predictive effects
Variance of response due to treatment.
Variance of response due to prognostic effects.
Variance of response due to predictive effects.
Variance of response due to random noise.
Autocorrelation parameter between biomarkers, default is NULL.
NULL
The distribution family for response variable, can be gaussian'', or binomial''. Default is ``gaussian''.
gaussian'', or
further arguments passed to or from other methods.
A list containing several variables.
Treatment status in 1 or -1 values.
Biomarkers.
Hadamard product of treatment and biomarkers.
Model matrix - binding of T, X, and W.
T
X
W
Response.
Response without error.
Treatment effect.
Prognostic effects.
Predictive effects.
All effects corresponding to M.
M
ma2019structuralsmog
# NOT RUN { sim <- sim_rct_biomarker(n = 1e3) var(as.vector(sim$T * sim$tau)) var(as.vector(sim$X %*% sim$beta)) var(as.vector(sim$W %*% sim$gamma)) # }
Run the code above in your browser using DataLab