Description Usage Arguments Value Examples
gridcast
generates YourCast forecasts for a range of prior specifications and outputs diagnostics across the different specifications.
1 2 3 4 5 | gridcast(dataobj, Ha.sigma.seq = c(from = 0.01, to = 20, length.out = 5),
Ha.list = NULL, Ht.sigma.seq = c(from = 0.01, to = 20, length.out = 5),
Ht.list = NULL, Hat.sigma.seq = NA, Hat.list = NULL, logscale = TRUE,
time.degree = 1, length.holdout = 5, holdout = NULL,
mse.age.weight = NA, print.runs = TRUE, ...)
|
dataobj |
Object of class ' |
Ha.sigma.seq |
Three element numeric vector. The first two elements give the range of |
Ha.list |
Vector. A vector of additional values of |
Ht.sigma.seq |
Three element numeric vector. The first two elements give the range of |
Ht.list |
Vector. A vector of additional values of |
Hat.sigma.seq |
Three element numeric vector. The first two elements give the range of |
Hat.list |
Vector. A vector of additional values of |
logscale |
Logical. Should sigma values be evenly sampled on a log scale and then exponentiated? Default: |
time.degree |
Non-negative integer. Specifies the degree of the baseline polynomial to which time profiles are smoothed.
For example, if |
length.holdout |
Non-negative integer. Specifies the number of time periods that should be omitted from the end of the observed period for validation.
If set to 0, then at least one time period must be provided as an argument to |
holdout |
Vector specifying additional time periods to withhold for validation. Default: |
mse.age.weight |
A scalar or a numeric vector with weights that determine how much the different age groups factor into the calculation of root mean square error of the forecasts in the validation period.
If set to |
print.runs |
Logical. If TRUE, will print notification for each run of yourcast. |
... |
Additional arguments passed to |
An object of class "gridcast"
contains the following components
y
A matrix of observed data (age groups by time periods).
aux
List. A list of inputs to yourcast
.
validation
List. A list containing all sigma combinations, the forecasts, and the associated diagnostics.
1 2 3 4 5 6 7 8 | data(netherlands)
ff <- log(brst3/popu3) ~ log(hc) + log(gdp) + log(tobacco3) + log(fat) + time
gridcast(netherlands_data, formula=ff, model="map",
sample.frame=c(1950,2000,2001,2030), verbose=FALSE)
gridcast(netherlands_data, formula=ff, model="map",
sample.frame=c(1950,2000,2001,2030), verbose=FALSE,
Ht.sigma.seq=c(from=0.01, to=100, length.out=5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.