christophsax / tempdisagg

Methods for Temporal Disaggregation and Interpolation of Time Series
http://cran.r-project.org/web/packages/tempdisagg
36 stars 5 forks source link

annual to daily #53

Open AZFARHAD24511 opened 8 months ago

AZFARHAD24511 commented 8 months ago

is it possible to implement for annual as low frequency on daily time series and is there any limitations? when i apply it i face with some error as follow whereas i have no missing values

Error in td(df_y ~ df_x, method = m, conversion = "sum", fixed.rho = 0.9, : right hand side contains NAs

any(is.na(df_y)) [1] FALSE any(is.na(df_x)) [1] FALSE

christophsax commented 8 months ago

Yes, this should be possible. Have you seen this? https://cran.r-project.org/web/packages/tempdisagg/vignettes/hf-disagg.html

If you have NAs, it's probably best to interpolate them beforehand. For example, using tsbox:: ts_na_interpolation().