Coder Social home page Coder Social logo

gravitytrope / exploremodelmatrix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from csoneson/exploremodelmatrix

0.0 0.0 0.0 3.08 MB

Explore design matrices interactively with R/Shiny

Home Page: https://csoneson.github.io/ExploreModelMatrix/

License: Other

R 100.00%

exploremodelmatrix's Introduction

ExploreModelMatrix

Travis CI build status Codecov.io coverage status

ExploreModelMatrix is a small R package that lets the user interactively explore a design matrix. In particular, given a table with sample information and a design formula, ExploreModelMatrix will illustrate the fitted values (or, more generally, the value of the linear predictor) for each combination of input variables, simplifying understanding and generation of contrasts.

ExploreModelMatrix is still under development and we welcome feedback. Please open an issue if you encounter unexpected behaviour.

Installation

You can install ExploreModelMatrix with the remotes (or devtools) package, like so:

remotes::install_github("csoneson/ExploreModelMatrix", build_vignettes = TRUE, dependencies = TRUE)

For this to work, you need to have the remotes R package installed. If you don't already have it, you can install it like this:

install.packages("remotes")

Usage

The main function in the ExploreModelMatrix package is called ExploreModelMatrix. When calling ExploreModelMatrix, simply provide a data.frame with sample information and a design formula:

sampleData <- data.frame(genotype = rep(c("A", "B"), each = 4),
                         treatment = rep(c("ctrl", "trt"), 4))
ExploreModelMatrix(sampleData = sampleData,
                   designFormula = ~ genotype + treatment)

This will open up an R/Shiny application where you can explore the specified design matrix and the fitted values for each combination of predictor values.

For more examples of designs, please see the vignette.

exploremodelmatrix's People

Contributors

csoneson avatar federicomarini avatar petehaitch 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.