Learn R Programming

medflex (version 0.6-11)

Flexible Mediation Analysis Using Natural Effect Models

Description

Run flexible mediation analyses using natural effect models as described in Lange, Vansteelandt and Bekaert (2012) , Vansteelandt, Bekaert and Lange (2012) and Loeys, Moerkerke, De Smet, Buysse, Steen and Vansteelandt (2013) .

Copy Link

Version

Install

install.packages('medflex')

Monthly Downloads

1,632

Version

0.6-11

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Johan Steen

Last Published

October 13th, 2025

Functions in medflex (0.6-11)

neWeight

Expand the dataset and calculate ratio-of-mediator probability weights
plot.neLht

Confidence interval plots for linear hypotheses in natural effect models
neWeight.default

Expand the dataset and calculate ratio-of-mediator probability weights
neWeight.formula

Expand the dataset and calculate ratio-of-mediator probability weights
plot.neModel

Confidence interval plots for natural effect components
neLht-methods

Methods for linear hypotheses in natural effect models
expData-methods

Methods for expanded datasets
neModel-methods

Methods for natural effect models
neImpute

Expand the dataset and impute nested counterfactual outcomes
expData

Expanded dataset
neImpute.formula

Expand the dataset and impute nested counterfactual outcomes
UPBdata

UPB data
neImpute.default

Expand the dataset and impute nested counterfactual outcomes
neModel

Fit a natural effect model
neLht

Linear hypotheses for natural effect models