GithubHelp home page GithubHelp logo

mczyzj / bptosimulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.07 MB

Shiny BPTO Conjoint Siumlator for HB models

License: Other

R 92.25% CSS 7.75%
conjoint-analysis hierarchical-bayesian-analysis r shiny conjoint-simulator

bptosimulator's Introduction

BPTOSimulator

Lifecycle: maturing

The BPTOSimulator is a Shiny package build with golem framework. It’s purpose it to allow easy setup of BPTO Conjoint Simulator based on Hierarchical Bayes Models. The simulator part of dashboard is build automatically from the data provided. Quick adjustments to Interface Layout might be provided with custom.css file.

Installation

  • You can install the boilerplate directly form GitHub and play with the example.
# install.packages("remotes")
remotes::install_github("mczyzj/BPTOSimulator")
  • The Simulator works as a package. It means that to make it fully operational you need to download (clone) the repository, and tailor it to your needs.

Adjustments

There are few things you will need or like to adjust:

  • The data set shouls be saved as package data. You will also need to put correct names of your data sets in app_ui and app_server
### ADJUST THIS LINES WITH YOUR DATA SET NAMES
### app_server.R
respid_filter <- BPTOSimulator::cj_key_filters_example1 %>%
  stats::setNames(snakecase::to_snake_case(colnames(.)))
filter_names <- unique(BPTOSimulator::cj_filters_example1$filter_name)
specs_df <- BPTOSimulator::cj_specs_example1
utils_df <- BPTOSimulator::cj_utils_example1
### app_ui.R
products_change <- BPTOSimulator::cj_specs_example1 %>%
    filter(.data$Min != .data$Max)

filters_change <- split(
  BPTOSimulator::cj_filters_example1,
  BPTOSimulator::cj_filters_example1$filter_name
)
  • The overall layout. Most of the elements can be quickly adjusted in inst/app/www/custom.css file. Also in the inst/app/www folder you will find logo and favicon you will like to change.

bptosimulator's People

Contributors

mczyzj avatar

Watchers

 avatar

bptosimulator's Issues

Add a selection wrapper

Selection of price, sales, channel sales and profit columns repeats in to many places. Substitute with a wrapper.

Add dropdown selection for different data sets

Currently only one data set is supported. The simulator should first build a dropdown selection of possible sets. After changing selection, clicking on update button should update the interface of simulator.

Update documentatio

  • Add Vignettes
  • Check if all the functions are properly documented
  • Typos and Grammar
  • Add examples and screenshots/gifs to README

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.