Giter VIP home page Giter VIP logo

dsmice's Introduction

dsMice

Multivariate Imputation by Chained Equations for DataSHIELD - Server

The mice package creates multiple imputations (replacement values) for multivariate missing data.

The DataSHIELD framework is a platform for federated data analysis that brings the algorithm to the data.

The dsMiceClient package is an add-on to mice that makes multiple imputation available for federated data systems. This is the package that the DataSHIELD end user installs locally.

The dsMice package is part of the DataSHIELD infrastructure. This is the package that the DataSHIELD node owner installs on the server.

Installation

The following code installs the dsMice package on the node server:

Install the opaladmin dependence using the R console.

install.packages('opaladmin', repos=c('http://cran.rstudio.com/', 'http://cran.obiba.org'), dependencies=TRUE)

Call the opal and opaladmin library.

library(opal)
library(opaladmin)

Connect to data nodes.

o <- opal.login(username = 'user', password = 'pass', url = "https://node-address-1")
o2 <- opal.login(username = 'user', password = 'pass', url = "https://node-address-2")
o3 <- opal.login(username = 'user', password = 'pass', url = 'https://node-address-3')

Remove old version of the package (if you have installed it before).

if ("dsMice" %in% rownames(installed.packages())) dsadmin.remove_package(o, 'dsMice')
if ("dsMice" %in% rownames(installed.packages())) dsadmin.remove_package(o2, 'dsMice')
if ("dsMice" %in% rownames(installed.packages())) dsadmin.remove_package(o3, 'dsMice')

Install the package devtools into data node (only for the first run).

oadmin.install_devtools(o)
oadmin.install_devtools(o2)
oadmin.install_devtools(o3)

Download the package from Git repository to data nodes.

cmd <- paste('devtools::install_github("stefvanbuuren/dsMice")')
opal.execute(o, cmd)
opal.execute(o2, cmd)
opal.execute(o3, cmd)

Install the package into data nodes

dsadmin.install_package(o, 'dsMice')
dsadmin.install_package(o2, 'dsMice')
dsadmin.install_package(o3, 'dsMice')

Publish the package's DataSHIELD methods

dsadmin.set_package_methods(o, 'dsMice')
dsadmin.set_package_methods(o2, 'dsMice')
dsadmin.set_package_methods(o3, 'dsMice')

Logout from Opal

opal.logout(o)
opal.logout(o2)
opal.logout(o3)

In order to work well, the end user should that the dsMiceClient package installed locally.

Note

Warning: This is an experimental feature. These function do not yet actually work. If you have ideas about the integration of mice and DataSHIELD feel free to join in.

Related initiative

Related work appears in gflcampos/dsMice and gflcampos/dsMiceClient.

Minimal example

Include minimal example here using public DataSHIELD nodes.

dsmice's People

Contributors

paularaissa avatar stefvanbuuren avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

stuartwheater

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.