Coder Social home page Coder Social logo

khp-informatics / bayesian-logistic-regression-r-shiny-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 10.0 3.0 31 KB

This repository contains a GUI written in Rshiny to perform Bayesian Logistic regression analysis in R. The interface is based on the MCMClogit function from the MCMCpack package.

R 98.73% Rebol 1.27%

bayesian-logistic-regression-r-shiny-app's Introduction

Bayesian Logistic Regression

This repository contains a GUI written in Rshiny to perform Bayesian Logistic regression analysis in R. The interface is based on the MCMClogit function from the MCMCpack package.

Author: Nicola Voyle [email protected]

Written and tested in R Version 3.2.2 using OS X El Capitan Version 10.11.1

Quick Start

  1. Open R
  2. Install 'shiny' library
  3. Place the three files from this repo (model.R, ui.R and server.R) in a folder called 'bayes-app'
  4. Navigate to the parent directory of 'bayes-app'
  5. In R, run runApp('bayes-app') to launch the application
# clone repo and name desitnation `bayes-app`
git clone https://github.com/KHP-Informatics/bayesian-logistic-regression-r-shiny-app.git bayes-app
cd bayes-app

# launch R
R

# run the application
library(shiny)
runApp('bayes-app')

Dependencies

Install the following

  • R
  • RStudio
  • shiny

R pacakges:-

install.packages("shiny", dependencies=TRUE);
install.packages("arm", dependencies=TRUE);
install.packages("MCMCpack", dependencies=TRUE);
install.packages("coda", dependencies=TRUE);
install.packages("fBasics", dependencies=TRUE);
install.packages("stats4", dependencies=TRUE);
install.packages("MASS", dependencies=TRUE);
install.packages("vcd", dependencies=TRUE);
install.packages("caret", dependencies=TRUE);
install.packages("pROC", dependencies=TRUE);
install.packages("ROCR", dependencies=TRUE);
install.packages("BoomSpikeSlab", dependencies=TRUE);

Questions?**

email: [email protected]

Please note, this application was not created in conjunction with the developers of MCMCpack. Their package and documentation are fully acknowledged:

http://mcmcpack.berkeley.edu/index.html

https://cran.r-project.org/web/packages/MCMCpack/index.html

Andrew D. Martin, Kevin M. Quinn, Jong Hee Park (2011). MCMCpack: Markov Chain Monte Carlo in R. Journal of Statistical Software. 42(9): 1-21. URL http://www.jstatsoft.org/v42/i09/.

bayesian-logistic-regression-r-shiny-app's People

Contributors

nicolavoyle avatar snewhouse avatar

Stargazers

 avatar

Watchers

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