
Last chance! 50% off unlimited learning
Sale ends in
Generation of temporal basis function
getTBasisFun(serDf, idStr, dateStr, valStr, df = 25, n.basis = 2, tbPath = NA)
Time series dataframe, format: (siteid,date,observed value)
Location id name
Date id name
The target variable's name
Degree of freedom
Number of temporal basis function
The path to save the plots of each temporal basis component. Default: NA, no plots generated
A dataframe of temporal basis function: (date, pvi (the ith temporal basis function output for a date ))
Finkenstadt, B., Held, L., Isham, V., 2007. Statistical Methods for Spatio-Temporal Systems. Chapman & Hall/CRC, New York.
# NOT RUN {
#Use PM2.5 as example:
data("shdSeries2014")
result=getTBasisFun(shdSeries2014,"siteid","date","obs",df=10,n.basis=2)
# }
Run the code above in your browser using DataLab