weightcast: Weight selection for AutoCast

Description Usage Arguments Value Examples

Description

weightcast launches an interactive, Shiny-based application that allows the user to select multiple weight combinations that fit her preference for fit versus smoothness of the forecasts.

Usage

1
2
weightcast(x, out.file = NULL, out.object = NULL, center.diags = T,
  scale.diags = T, options = list())

Arguments

x

Object of class "gridcast" or a list of "gridcast" objects.

out.file

Character. Gives full filename (and path) of where to save selected weight combinations (if requested). Default: NULL.

out.object

Character. Gives name of object in parent.frame() to which to assign selected weight combinations (if requested). Default: NULL.

center.diags

Logical. If TRUE, each of the four diagnostic variables is centered (de-meaned). Default: TRUE.

scale.diags

Logical. If TRUE, each of the four diagnostic variables is scaled after centering, if applicable (divided by standard deviation). Default: TRUE.

options

Options passed to options argument of ShinyApp.

Value

NULL.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(netherlands)
ff <- log(brst3/popu3) ~ log(hc) + log(gdp) + log(tobacco3) + log(fat) + time
out <- gridcast(netherlands_data, formula=ff, model="map",
                           sample.frame=c(1950,2000,2001,2030), verbose=FALSE)
weightcast(out)

weightcast(out, options=list(port=8888, launch.browser = F))

## End(Not run)

IQSS/AutoCast documentation built on May 7, 2019, 6:02 a.m.