Skip to content

Deep neural network based penalized partially linear mediation model with high-dimensional mediators

Notifications You must be signed in to change notification settings

ShuoyangWang/dp2lm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DP2LM: Deep neural network based penalized partially linear mediation model with high-dimensional mediators


Mediation model

  • Outcome-mediator model: model1
  • Mediator-exposure model: model2
  • Total model model3
  • covariates
  • Direct effect: dirrect
  • Indirect effect: indirect

Estimation via deep neural networks

  • Estimation of direct effect:

direct

Scad

  • Estimation of indirect effect:

    total

    indirect


Inference via deep neural networks

  • F-type test for direct effect:

H0

RSS

F

  • Wald test for indirect effect:

wald


Deep neural network hyperparameters and structures

  • 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

Function descriptions

  • "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

Examples

  • "data.R": a data generating example.

About

Deep neural network based penalized partially linear mediation model with high-dimensional mediators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages