neWeightDS: Expand the dataset and calculate ratio-of-mediator...

View source: R/neWeightDS.R

neWeightDSR 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

neWeightDS(object)

Arguments

object

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

Details

The function '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/dsMediation documentation built on June 15, 2022, 12:19 p.m.