XMInt_select: Model selection results

View source: R/XMInt_select.R

XMInt_selectR Documentation

Model selection results

Description

This function gives the model selection results.

Usage

XMInt_select(
  X,
  Y,
  M,
  K = 20,
  zeta = 0.05,
  max.factor = 1.5,
  hbic_plot = FALSE,
  coef_print = FALSE
)

Arguments

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 = FALSE)

coef_print

print coefficients (default = FALSE)

Value

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

Examples

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)

ruiyangli1/XMInt documentation built on March 18, 2024, 12:13 p.m.