Closed aalfons closed 6 years ago
Simply writing wrapper functions fit_mediation(data, ...)
and test_mediation(data, ...)
should do the trick.
Actually, is the wrapper fit_mediation()
really necessary? For practical use, only test_mediation()
is relevant.
Instead of wrappers, those should probably be the main functions. Then write wrappers fitMediation()
and testMediation()
and mark them as deprecated.
The data frame needs to be the first argument to work nicely with the pipe operator.