ds.neWeight: Expand the dataset and calculate ratio-of-mediator...

View source: R/ds.neWeight.R

ds.neWeightR Documentation

Expand the dataset and calculate ratio-of-mediator probability weights

Description

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

Usage

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.

Details

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

Value

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

Author(s)

Demetris Avraam, for DataSHIELD Development Team


datashield/dsMediationClient documentation built on June 15, 2022, 12:19 p.m.