Giter Site home page Giter Site logo

seasonalview's Introduction

Graphical User Interface for Seasonal Adjustment

R-CMD-check

An R package that unifies the shiny-based graphical user interfaces from the seasonal and x13story packages and the online adjustment tool on www.seasonal.website.

To install from CRAN, use:

install.packages("seasonalview")

Seasonal

The main function of the package is the view function, which works like the depreciated inspect function in seasonal (which it replaces). seasonalview is imported by seasonal, so loading is not necessary:

library(seasonal)  
m <- seas(AirPassengers)
view(m)

X-13 Story

If you have the x13story package installed, you can call the function with the story argument. This will render an R Markdown document and produce a story on seasonal adjustment that can be manipulated interactively.

view(story = "https://raw.githubusercontent.com/christophsax/x13story/master/inst/stories/x11.Rmd")

Stand-alone

Finally, you can set up a stand-alone seasonal adjustment tool, either locally or on a server. While itself not very useful, the standalone function showcases how a local version of www.seasonal.website would look like:

library(seasonalview)
standalone()

License and Credits

seasonalview is free and open source, licensed under GPL-3. It is built on top of a large number of great open source tools. It uses shiny and shinydashboard. It also uses dygraphs, and, of course, seasonal, x13binary and X-13ARIMA-SEATS, the wonderful seasonal adjustment software by the U.S. Census Bureau.

Thanks for your feedback, your ideas and bug-reports. Contact me.

seasonalview's People

Contributors

christophsax avatar mbannert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

seasonalview's Issues

`import.spc2` not found

If you want to manually adjust the X-13 spec code...

Warning: Error in observerFunc: could not find function "import.spc2"
Stack trace (innermost first):
    57: observerFunc [/Library/Frameworks/R.framework/Versions/3.3/Resources/library/seasonalview/app/server.R#73]
     2: shiny::runApp
     1: view
ERROR: [on_request_read] connection reset by peer

Warning: 'xts::indexClass' is deprecated.

> view(seas(AirPassengers))
Press ESC (or Ctrl-C) to get back to the R session
Loading required package: shiny
Warning: 'xts::indexClass' is deprecated.
Use 'tclass' instead.

Significance of tests not visible in view(seas())

The significance of the tests (e.g. test for no seasonality in final series) is sometimes not visible in the shiny interface. For example, summary(seas(x)) shows that H0 is rejected on the 1% level while in view() 1% is written in white color on a white ground, hence it is not visible.
Most likely, the problem is that the box around the "1%" has is of white color as well.

Update CRAN

  • R CMD check --as.cran
  • Fix GHA
  • Windbuilder, Macbuilder (change email address)
  • Christoph to release

Use of ACE-editor

Including this for future reference.

The use of the ACE-editor (at least trough shinyAce) slows down website loading time by almost 4 sek on a slow Internet connection). Without some great benefit (e.g. autocompletion) that's not worth the pain.

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.