Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


sptemExp (version 0.1.4)

getTBasisFun: Generation of Temporal Basis Function

Description

Generation of temporal basis function

Usage

getTBasisFun(serDf, idStr, dateStr, valStr, df = 25, n.basis = 2, tbPath = NA)

Arguments

serDf

Time series dataframe, format: (siteid,date,observed value)

idStr

Location id name

dateStr

Date id name

valStr

The target variable's name

df

Degree of freedom

n.basis

Number of temporal basis function

tbPath

The path to save the plots of each temporal basis component. Default: NA, no plots generated

Value

A dataframe of temporal basis function: (date, pvi (the ith temporal basis function output for a date ))

References

Finkenstadt, B., Held, L., Isham, V., 2007. Statistical Methods for Spatio-Temporal Systems. Chapman & Hall/CRC, New York.

Examples

Run this code
# 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