ragged_preds: Get predictions on artificial vintages

ragged_predsR Documentation

Get predictions on artificial vintages

Description

Get predictions on artificial vintages

Usage

ragged_preds(model, pub_lags, lag, data, start_date = NULL, end_date = NULL)

Arguments

model

a trained LSTM model gotten from calling LSTM()

pub_lags

list of integers, list of periods back each input variable is set to missing. I.e. publication lag of the variable.

lag

integer, simulated periods back. E.g. -2 = simulating data as it would have been 2 months before target period, 1 = 1 month after, etc.

data

dataframe to generate the ragged datasets and predictions on

start_date

string in "YYYY-MM-DD" format, start date of generating ragged preds. To save calculation time, i.e. just calculating after testing date instead of all dates

end_date

string in "YYYY-MM-DD" format, end date of generating ragged preds

Value

dataframe of actuals, predictions, and dates


dhopp1/nowcastLSTM documentation built on May 7, 2024, 9:30 a.m.