@@ -222,10 +222,11 @@ project <- function(sample_file,
222222
223223
224224
225-
225+ date <- NULL
226226 if (is.null(wage.series )){
227+ wpi_orig_ <- grattanInflators :: wpi_original(FORECAST = TRUE )[date < = as.IDate(" 2075-12-31" )]
227228 wage.inflator <- wage_inflator(from = current.fy , to = to.fy ,
228- series = grattanInflators :: wpi_original( FORECAST = TRUE ) )
229+ series = wpi_orig_ )
229230 } else {
230231 wage.inflator <- wage_inflator(from = current.fy , to = to.fy ,
231232 series = wage.series )
@@ -242,7 +243,7 @@ project <- function(sample_file,
242243 set(sample_file , j = " WEIGHT" , value = as.double(n_taxpayers_2022_2034 [to.yr - 2021 ] / nrow(sample_file )))
243244 } else {
244245 lf.inflator <- lf_inflator(from = current.fy , to = to.fy ,
245- series = grattanInflators :: lfi_original(FORECAST = TRUE ))
246+ series = grattanInflators :: lfi_original(FORECAST = TRUE )[ date < = as.IDate( " 2075-12-31 " )] )
246247 }
247248 } else {
248249 if (is.data.table(lf.series )) {
@@ -253,8 +254,10 @@ project <- function(sample_file,
253254 series = lf.series )
254255 }
255256
257+ cpi_orig_ <- grattanInflators :: cpi_seasonal(FORECAST = TRUE )[date < = as.IDate(" 2075-12-31" )]
258+
256259 cpi.inflator <- cpi_inflator(from = current.fy , to = to.fy ,
257- series = grattanInflators :: cpi_seasonal( FORECAST = TRUE ) )
260+ series = cpi_orig_ )
258261
259262 if (is.null(r_generic )) {
260263 r_generic <- cpi.inflator
0 commit comments