Giter Site home page Giter Site logo

scf's Introduction

SCF

This repository contains two separate scripts written in R, along with the data sets used for our analysis and testing. The first script, titled "Andrew_SCF_Analysis.R," contains the back end code for the diabetes-related clinical sensor data analyses in the Results section. With a quick adjustment to the working directory set, this code can be run interactively via the R console. The second script, titled "software.R," functions as a command line utility which automates the key Bayesian Structural Time Series analysis conducted in the first script.

Both scripts require that the user have installed the following packages: CausalImpact, tidyverse, lubridate, data.table, and reshape2.

The R script "software.R" requires a single, complete data file with four columns corresponding to Date, Time, Variable, and Value, in that order. Prior to running, the script and its corresponding data file must be placed in the same directory. Running the script requires the following 9 user-inputted command-line arguments:

  1. filename of 4-column file (date, time, variable, value)
  2. length of interval to align data to in minutes
  3. start date of analysis in YYYY-MM-DD
  4. start time of analysis in HH:MM:SS
  5. end date of analysis in YYYY-MM-DD
  6. end time of analysis in HH:MM:SS
  7. date of intervention in YYYY-MM-DD
  8. time of intervention in HH:MM:SS
  9. dependent variable name

scf's People

Contributors

andrewzhang456 avatar dspak avatar

Watchers

James Cloos avatar

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.