This function is similar to R function test.TMint from the mediation package.

ds.test.TMint(x = NULL, conf.level = NULL, datasources = NULL)

Arguments

x

the name of the output of the ds.mediate function saved at each server.

conf.level

the level of the returned two-sided confidence intervals for the effect differences. By default it is set to the value used in the original mediate call.

datasources

a list of DSConnection-class objects obtained after login. If the datasources argument is not specified the default set of connections will be used: see datashield.connections_default.

Value

an object of class "htest" when applied to a mediate object. See t.test for more explanations of the contents. The function returns an object of class "htest.order" which has its own print method included in this package.

Details

The function 'test.TMint' is used to test whether the average causal mediation effects and direct effects are significantly different between the treatment and control conditions.

Author

Demetris Avraam, for DataSHIELD Development Team