dssVar: Compute the variance of a given vector

View source: R/dssVar.R

dssVarR Documentation

Compute the variance of a given vector

Description

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

Usage

dssVar(what, type = "combine", async = 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

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).


sib-swiss/dsSwissKnifeClient documentation built on July 16, 2025, 6:25 p.m.