Name
datelf2hf — transformation of a date into a higher frequency date
CALLING SEQUENCE
datnew=datelf2hf(dat,divfq,ind)
PARAMETERS
- Input
dat = a string representing a grocer date
fq = the destination frequency
ind = a scalar equal to the high frequency part of the initial date
- Output
daten = the corresponding high frequency date
DESCRIPTION
For a given date, gives the corresponding date at a higher frequency, with the corresponding subdivision given by ind. The same purpose as datelf2hf0 but with some tests on the input.
EXAMPLE
1) datelf2hf('1989q1',3,1)
2) datelf2hf('1989a',4,2)
Example 1 gives '1989m1'.
Example 2 gives '1989q2'.