DP2LM: Deep neural network based penalized partially linear mediation model with high-dimensional mediators
- Estimation of direct effect:
- F-type test for direct effect:
- Wald test for indirect effect:
- L: number of layers
- p: neurons per layer (uniform for all layers)
- s: dropout rate (data dependent)
- Loss function: mean squared loss
- Batch size: data dependent
- Epoch number: data dependent
- Activation function: ReLU
- Optimizer: Adam
- Regularizer: SCAD
- "estimation.R": estimation of direct effect via regularization and indirect effect by difference method using neural networks.
- "inference_direct.R": inference of direct effect using neural networks
- "inference_indirect.R" inference of indirect effect using neural networks
- "data.R": a data generating example.