Movatterモバイル変換


[0]ホーム

URL:


The MovingEpidemic Method Shiny Web Application

Overview

memapp is a web application created to serve as a graphicaluser interface for the R mem package. It was created using Shiny, a webapplication framework for R.

Installation

The stable package can be installed from the official R repositories(CRAN) using the built-in install function (or from the packagemanager in some GUIs for R):

# install the memapp CRAN versioninstall.packages("memapp")

Or from the official repository:

if(!require("devtools")) install.packages("devtools")library("devtools")# install the memapp stable version from GitHubinstall_github("lozalojo/memapp", ref = "master")

To install the development version ofmemapp use thedevtools package.

if(!require("devtools")) install.packages("devtools")library("devtools")# install the memapp development version from GitHubinstall_github("lozalojo/memapp", ref = "development")

When installing this version also you are intalling developmentversions of some sensitive packages that are used bymemapp(including themem package).

See installation videos for Windows 10, Ubuntu 16.04.4 and MacOS10.13.1 High Sierra here:

Youtube’s installation videosplaylist

Usage

To run the memapp application, just use the function:

# run the app:memapp::runmemapp()

You can specify other parameters passed toshiny::runApp, such asdisplay = normal,or
launch.browser = TRUE.

# run the app:memapp::runmemapp(launch.browser = TRUE)

Notes

In order to use the Surveillance/Animation graph,magickpackage must be installed:

install.packages("magick")

Along withImageMagick:

ImageMagickWebsite

To import other formats like SAS, Stata, SPSS, excel, you’ll needadditional packages:

# MS Excel(xls, xlsx)install.packages("readxl")# dBase (dbf), SPSS (sav) and Stata (dta)install.packages("foreign")# SAS (sas7bdat)install.packages("haven")# OpenDocument Spreadsheet (ods)install.packages("readODS")# MS Access under Windows (mdb, accdb)install.packages("RODBC")

The installers can be downloaded from their webpages or can beinstalled directly from R:

# check if installr is installed, and install it otherwiseif(!require("installr")) install.packages('installr')library("installr")# install ImageMagickinstall.ImageMagick()

Most data can be exported to csv or excel files, but for the later towork you have to install Rtools toolset and the openxlsx package.

You can download and install Rtools it here:

Rtools download website

# check if installr is installed, and install it otherwiseif(!require("installr")) install.packages('installr')library("installr")# install Rtoolsinstall.Rtools()

And install openxlsx package:

# Install openxlsx packageinstall.packages("openxlsx")

Technical manual

The technical manual of the application can be downloaded fromhere:

Technical manual (stable version)

Technical manual (developmentversion)

Localization

Starting with version 2.6, memapp enabled an option to localize theapp. If your language is not listed in the Languages section and youwant to see the app translated please, open the semicolon separatedvalues file at github:

English language definition

With a text editor, translate the second column to your language andsend it to the maintainer.

Localization credits:

@Spanish, José E.Lozano

@French, IsabelBergeri

Useful links

memapp R packageofficialwebpage

memapp R packageCRAN webpage

memappofficial server

References

Vega T, Lozano JE, Ortiz de Lejarazu R, Gutierrez Perez M. Modellinginfluenza epidemic—can we detect the beginning and predict the intensityand duration? Int Congr Ser. 2004 Jun;1263:281–3.

Vega T, Lozano JE, Meerhoff T, Snacken R, Mott J, Ortiz de LejarazuR, et al. Influenza surveillance in Europe: establishing epidemicthresholds by the moving epidemic method. Influenza Other RespirViruses. 2013 Jul;7(4):546–58. DOI:10.1111/j.1750-2659.2012.00422.x.

Vega T, Lozano JE, Meerhoff T, Snacken R, Beaute J, Jorgensen P, etal. Influenza surveillance in Europe: comparing intensity levelscalculated using the moving epidemic method. Influenza Other RespirViruses. 2015 Sep;9(5):234–46. DOI:10.1111/irv.12330.

Lozano JE. lozalojo/mem: Second release of the MEM R package. Zenodo[Internet]. [cited 2017 Feb 1]; Available from:https://zenodo.org/record/165983.DOI

Lozano JE. lozalojo/memapp: Second release of the MEM Shiny WebApplication R package. Zenodo [Internet]. [cited 2018 Feb 15]; Availablefrom:https://zenodo.org/record/1173518.DOI


[8]ページ先頭

©2009-2025 Movatter.jp