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.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'))

Peer review:

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

Datasets:

On CRAN:

causal-inferenceflexible-modelingmediation-analysis

6.98 score 21 stars 46 scripts 583 downloads 19 mentions 6 exports 66 dependencies

Last updated 1 years agofrom:327ff7a3fc. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 15 2024
R-4.5-winNOTEOct 15 2024
R-4.5-linuxNOTEOct 15 2024
R-4.4-winOKOct 15 2024
R-4.4-macOKOct 15 2024
R-4.3-winOKOct 15 2024
R-4.3-macOKOct 15 2024

Exports:neEffdecompneImputeneLhtneModelneWeightplot.neLht

Dependencies:abindbackportsbootbroomcarcarDataclicodetoolscolorspacecowplotcpp11DerivdoBydplyrfansifarverFormulagenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmultcompmunsellmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6RColorBrewerRcppRcppEigenrlangsandwichscalesSparseMstringistringrsurvivalTH.datatibbletidyrtidyselectutf8vctrsviridisLitewithrzoo

Flexible mediation analysis in R using natural effect models

Rendered frommedflex.Rnwusingutils::Sweaveon Oct 15 2024.

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

Sandwich estimator derivations for natural effect model parameters

Rendered fromsandwich.Rnwusingutils::Sweaveon Oct 15 2024.

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