repro-workshop
repro-workshop copied to clipboard
Possible error in prepare_inflation.R in the Posit Cloud
Part of 'transform-inflation' in /cloud/project/R/prepare_inflation.R is to get the expectation regarding inflation.
L39 reads like this: expectation = ifelse(E1y_all == 99.0, NA, P_all),
I think, the P_all in the else-case is a copy-paste-error from L38. It should be:
expectation = ifelse(E1y_all == 99.0, NA, E1y_all ),
Thanks for pointing this out!