This function is similar to R function neWeight from the mmedflex package.

ds.neWeight(object = NULL, newobj = NULL, datasources = NULL)

Arguments

object

a string character, the name of an object used to select a method.

newobj

a character string that provides the name for the output object that is stored on the data servers. Default neWeight.data.

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

a data frame of class c("data.frame", "expData", "weightData") is assigned at the server-side of each study.

Details

The function ds.neWeight both expands the data along hypothetical exposure values and calculates ratio-of-mediator probability weights.

Author

Demetris Avraam, for DataSHIELD Development Team