Generates weights according to Geweke & Amisano 2011/2012, also known as linear predicition pools. Obviously it takes data on a specific form, which you should describe..
1 | gen_gewisano(data, start_t, pratig = FALSE)
|
data |
Data set of atomic predictions. |
start_t |
Which timepoint to start generating weights for. Obs! This is based on the variable t in the data, not the row number! |
pratig |
If true, the function prints a bunch of information when run. It also returns a data frame that contains the weights at each time, so pratig has to be FALSE when running from one of the meta-funktions that generate predictions. This is because the object returned changes from a single data frame to a list with the original data frame returned as the first object, and a matrix of weights as the second object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.