ds.neWeight.Rd
This function is similar to R function neWeight
from the
mmedflex
package.
ds.neWeight(object = NULL, newobj = NULL, datasources = NULL)
a string character, the name of an object used to select a method.
a character string that provides the name for the output object
that is stored on the data servers. Default neWeight.data
.
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
.
a data frame of class c("data.frame", "expData", "weightData") is assigned at the server-side of each study.
The function ds.neWeight
both expands the data along hypothetical
exposure values and calculates ratio-of-mediator probability weights.