Z
from a single level (quantile) to a second level (quantile), for a set of effect modifiers (in Z
) fixed to a specific level (quantile)R/SingVarRishSummaries.fixEY.R
SingVarRiskSummaries.fixEY.Rd
Calculate Single Variable Risk Summaries when fixing multiple effect modifiers at certain levels
Compute summaries of the risks associated with a change in a single variable in Z
from a single level (quantile) to a second level (quantile), for a set of effect modifiers (in Z
) fixed to a specific level (quantile)
The Total Effect BKMR model fit in a 'List' form.
vector indicating which variables (columns of Z) for which the summary should be computed, effect modifiers are not included
vector indicating the two quantiles q_1 and q_2 at which to compute h(z_{q2}) -h(z_{q1})
vector of quantiles at which to fix the remaining predictors in Z
the quantile values in the point which we want to keep fixed for all comparisons
names of all the effect modifiers that we want to fixed for all comparisons
selects which iterations of the MCMC sampler to use for inference
column names of the selected columns of Z in which.z
method for obtaining posterior summaries at a vector of new points. Options are"approx" and "exact"; defaults to "approx", which is faster particularly for large datasets
a list of data frames containing the (posterior mean) estimate and posterior standard deviation of the predictor risk measures, for each of the comparisons specified
For guided examples, go to https://zc2326.github.io/causalbkmr/articles/BKMRCMA_Effectof_singleZ.html