Shiny App for looking at Models

How many times do you hear “That model looks good, but what happens if you add/take out this variable”?  I’ve heard it one too many times and I finally have tools to combat this problem.

Introducing my first “out there” Shiny App:

https://github.com/muschellij2/Shiny_model

The app allows you to toggle on/off a set of predictors, and select from a list of outcomes, and presents the GLM of that (hopefully with correct interpretation of estimates).  If you want more families, it shouldn’t be hard.  It also shows you the generalized added variable plot from `car` package, so you can look at your heart’s desire for non-linearity in your predictors.

Steps to use (in terminal)

git clone https://github.com/muschellij2/Shiny_model.git

(or just download server.R ui.R)

setwd(“DIRECTORY those files are in”)

require(shiny)

runApp()

That’s it!  I have loaded up some mock data set in there that mimicked what I was working on, so make sure you don’t think I added real data.  Let me know if you like it (I’m not adding more features at this time – just a work in progress).  If you want to learn more, check out http://www.rstudio.com/shiny/ and their great tutorials.   

Advertisements

3 thoughts on “Shiny App for looking at Models

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s