View source: R/untransform_predictions.R
untransform_predictions | R Documentation |
So this is the reverse of 'state_space_reconstruction_for_sve()', but we only need to do it for the response variable, so just a single vector. Was using the notation of in Appendix of first manuscript, but only one vector so changing to 'response_' to match the call from 'single_view_embedding_for_sve()'.
untransform_predictions(
response_observed,
response_s_predicted,
max_lag,
positive_response_only = TRUE
)
response_observed |
[numeric()][vector()] original observed values |
response_s_predicted |
[numeric()][vector()] state space predictions (from the state space that used lagged and scaled variables), though just the response column |
max_lag |
maximum lag used |
positive_response_only |
logical, if TRUE then set any negative predictions of the response variable to be the minimum observed value |
[numeric()][vector()] a prediction vector of original 'N_t' in absolute space, so 'response_predicted', but also with a value for 'T+1', which is what we are ultimately after.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.