XMInt_select | R Documentation |
This function gives the model selection results.
XMInt_select(
X,
Y,
M,
K = 20,
zeta = 0.05,
max.factor = 1.5,
hbic_plot = FALSE,
coef_print = FALSE
)
X |
exposure |
Y |
outcome |
M |
mediators |
K |
lambda sequence length (default = 20) |
zeta |
min/max lambda ratio (default = 0.05) |
max.factor |
enlarging factor (default = 1.5) to start with base model |
hbic_plot |
plot HBIC curve (default = |
coef_print |
print coefficients (default = |
selected_mediator: selected mediator
selected_interaction: selected interaction
hbic_plot: HBIC plot for final model selection
hbic: computed HBIC
lambda: lambda sequence used
coefficient: estimated coefficients
data = dat_gen(N = 400, V = 50, es = 1, seed = 1234)
X = data$X; Y = data$Y; M = data$M
XMInt_select(X,Y,M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.