dssVar: Compute the variance of a given vector

Description Usage Arguments Value

View source: R/dssVar.R

Description

Similar to the R function var, corrects the datashield function ds.var.

Usage

1
dssVar(what, type = "combine", async = TRUE, wait = TRUE, datasources = NULL)

Arguments

what

a character, the name of a numerical vector.

type

a character which represents the type of analysis to carry out. If type is set to 'combine', a global variance is calculated. If type is set to 'split', the variance is calculated separately for each study.

async

same as in datashield.assign

wait

same as in datashield.assign

datasources

a list of opal objects obtained after logging into the opal servers (see datashield.login)

Value

A list containing: In the case of 'combine', a list with a 'global' element (the global variance). In the case of 'split', a list with as many elements as the 'datasources' argument (the respective variances).


IulianD/dsSwissKnifeClient documentation built on June 23, 2020, 4:38 p.m.