(Link back to Version 4 Archive)

Contents




Functions amended

ds.glm

New parameters (i.e. arguments) added to the function: ds.glm: data, weights and offset, checks, startBetas.

ds.table1D and ds.table2D

The Functions were re-written from scratch to implement a new way of masking 'invalid' cells whilst reporting correct total counts (i.e. to address the issues raised in BioSHaRe annual meeting, Athens 2014).
The new versions of these two functions return a more tidy output with improved error reporting and improved flexibility.

ds.tTest

In the previous version of this function a t.test was only possible for two continuous vectors.
The new version allows for the comparison of the mean values of a continuous vector across the categories of factor as in the below example where both vectors are in a data frame 'D':

# The continuous vector is on the left of the formula whilst the factor is on the right side
ds.tTest(x='D$PM_BMICONTINUOUS~D$GENDER')
ds.dataframe

New parameter (i.e. argument) added to the function: completeCases:

ds.meanByClass

In the new version of this function it is possible to compute the mean and standard deviation of a continuous vector across the categories of a factor as follows:

# The continuous vector is on the left of the formula whilst the factor is on the right side. In the below example both vector are in a data frame named 'D'.
ds.meanByClass(x='D$LAB_HDL~D$GENDER')

This addition was implemented for improved flexibility and is equivalent to the below syntax which still works and should be used to specify more than one outcome or covariate.

ds.meanByClass(x='D', outvar=c('LAB_HDL'), covar=c('GENDER'))

New functions

ds.subsetByClass

This function replaces the previous ds.subclass

ds.numNA

Returns the number of missing values in a given vector.

ds.replaceNA

To replaces missing values in a given vector by specific value(s).

ds.ls

To display the names of the objects stored/defined on the server side.

Functions removed

ds.subclass

This function has been replaced by ds.subsetByClass

Actions required from users

Remarks:

  • If you are using the BioSHaRE Rstudio interface (http://rstudio.bioshare.eu/) you do not have to do anything. However you might experience errors with the cohorts that have not updated their server packages because the latest client functions work with their server side counterparts.
    We will keep you updated about the cohorts that have updated their servers so you only include those in your analysis.
  • If you are running horizontal-DataSHIELD locally using the test environment: Please install the latest server side functions the same way as mentioned above on your virtual machine. And get the latest client side functions by running the below command in R or Rstudio, see here how to install the client packages on the test environment.

Actions required from opal server administrators

If you are the administrator of the opal server for a cohort: Please deploy the new package in your servers. Install all the packages via opal as follows:

List of packages and functions in the version 4.0.0

A /wiki/spaces/DSDEV/pages/12943456 is available.