Package: medflex 0.6-10

medflex: Flexible Mediation Analysis Using Natural Effect Models

Run flexible mediation analyses using natural effect models as described in Lange, Vansteelandt and Bekaert (2012) <doi:10.1093/aje/kwr525>, Vansteelandt, Bekaert and Lange (2012) <doi:10.1515/2161-962X.1014> and Loeys, Moerkerke, De Smet, Buysse, Steen and Vansteelandt (2013) <doi:10.1080/00273171.2013.832132>.

Authors:Johan Steen [aut, cre], Tom Loeys [aut], Beatrijs Moerkerke [aut], Stijn Vansteelandt [aut], Joris Meys [ctb], Theis Lange [ctb], Joscha Legewie [ctb], Paul Fink [ctb], Sanford Weisberg [ctb], Yves Rosseel [ctb]

medflex_0.6-10.tar.gz
medflex_0.6-10.zip(r-4.5)medflex_0.6-10.zip(r-4.4)medflex_0.6-10.zip(r-4.3)
medflex_0.6-10.tgz(r-4.5-any)medflex_0.6-10.tgz(r-4.4-any)medflex_0.6-10.tgz(r-4.3-any)
medflex_0.6-10.tar.gz(r-4.5-noble)medflex_0.6-10.tar.gz(r-4.4-noble)
medflex_0.6-10.tgz(r-4.4-emscripten)medflex_0.6-10.tgz(r-4.3-emscripten)
medflex.pdf |medflex.html
medflex/json (API)
NEWS

# Install 'medflex' in R:
install.packages('medflex', repos = c('https://jmpsteen.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jmpsteen/medflex/issues

Datasets:

On CRAN:

Conda:

causal-inferenceflexible-modelingmediation-analysis

7.09 score 23 stars 54 scripts 602 downloads 19 mentions 6 exports 69 dependencies

Last updated 2 years agofrom:327ff7a3fc. Checks:6 OK, 3 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 19 2025
R-4.5-winNOTEMar 19 2025
R-4.5-macNOTEMar 19 2025
R-4.5-linuxNOTEMar 19 2025
R-4.4-winOKMar 19 2025
R-4.4-macOKMar 19 2025
R-4.4-linuxOKMar 19 2025
R-4.3-winOKMar 19 2025
R-4.3-macOKMar 19 2025

Exports:neEffdecompneImputeneLhtneModelneWeightplot.neLht

Dependencies:abindbackportsbootbroomcarcarDataclicodetoolscolorspacecowplotcpp11DerivdoBydplyrfansifarverFormulagenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmultcompmunsellmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppEigenRdpackreformulasrlangsandwichscalesSparseMstringistringrsurvivalTH.datatibbletidyrtidyselectutf8vctrsviridisLitewithrzoo

Flexible mediation analysis in R using natural effect models

Rendered frommedflex.Rnwusingutils::Sweaveon Mar 19 2025.

Last update: 2021-02-23
Started: 2015-02-04

Sandwich estimator derivations for natural effect model parameters

Rendered fromsandwich.Rnwusingutils::Sweaveon Mar 19 2025.

Last update: 2015-09-13
Started: 2015-02-04

Readme and manuals

Help Manual

Help pageTopics
Expanded datasetexpData
Methods for expanded datasetsexpData-methods residualPlot.expData residualPlots.expData residuals.expData weights.expData
Expand the dataset and impute nested counterfactual outcomesneImpute
Expand the dataset and impute nested counterfactual outcomesneImpute.default
Expand the dataset and impute nested counterfactual outcomesneImpute.formula
Linear hypotheses for natural effect modelsneEffdecomp neEffdecomp.neModel neLht neLht.neModel
Methods for linear hypotheses in natural effect modelsconfint.neLht confint.neLhtBoot neLht-methods summary.neLht
Fit a natural effect modelneModel
Methods for natural effect modelscoef.neModel confint.neModel confint.neModelBoot neModel-methods residualPlot.neModel residualPlots.neModel summary.neModel vcov.neModel weights.neModel
Expand the dataset and calculate ratio-of-mediator probability weightsneWeight
Expand the dataset and calculate ratio-of-mediator probability weightsneWeight.default
Expand the dataset and calculate ratio-of-mediator probability weightsneWeight.formula
Confidence interval plots for linear hypotheses in natural effect modelsplot.neEffdecomp plot.neLht plot.neLhtBoot
Confidence interval plots for natural effect componentsplot.neModel plot.neModelBoot
UPB dataUPBdata