Displaying 6 results from an estimated 6 matches for "2001q1".
Did you mean:
2001,1
2006 Jan 25
2
Question about Aggregate
...uppose you a monthly series you want to aggregate at a quaterly frequency
with the start and the end of your series in the middle of the quarter.
For example
2001M2 2001M3 2001M4 2001M5 2001M6 2001M7
12 13 12 14 16 15
how can you get something like :
2001Q1 2001Q2 200Q3
NA 14 NA
or
2001Q1 2001Q2 200Q3
12.5 14 15
Thanks in advance
Matthieu
[[alternative HTML version deleted]]
2009 Mar 04
1
dividing ts objects of different frequencies
...ies object that consists of bankruptcy/population. Is there a pre-built
function to intelligently divide these time series:
br.ts = ts(data=br.df[,-1], frequency = 4, start=c(2001,1), end=c(2008,2))
distPop.ts = ts(data=distPop.df[,-1], frequency=1, start=(2000))
The time series I want is:
br.ts[2001Q1]/distPop.ts[2001] , br.ts[2001Q2]/distPop[2001],
br.ts[2001Q3]/distPop.ts[2001] , br.ts[2001Q4]/distPop[2001],
br.ts[2002Q1]/distPop.ts[2002] , br.ts[2002Q2]/distPop[2002],
etc.
This would not be too difficult to write but does anything like this already
exist?
Thank you,
-stephen
--
=========...
2013 Feb 20
1
To convert a quarterly data to a monthly data.
Hello,
I have a data set has
2001Q1 100
2001Q2 101
2001Q3 120
2001Q4 103
...
And would like to convert it to a monthly data. i.e.
200101 XXX
200102...
2010 Feb 03
1
plm package index
Dear all,
i just wonder if there´s a way to use a two column time index field in plm package.
the manual says the following concerning data indexing:
a character vector of length two containing the names of the individual and the time
index,
What would y´all do with a quarterly dataset that contains one column for the period and one for the year. Do I have to convert it to one single date
2007 Jul 25
3
aggregate.ts
Consider the following scrap of code:
> x<- ts(1:50,start=c(1,11),freq=12)
> y <- aggregate(x,nfreq=4)
> c(y)
[1] 6 15 24 33 42 51 60 69 78 87 96 105 114 123 132 141
> y
Error in rep.int("", start.pad) : invalid number of copies in rep.int()
> tsp(y)
[1] 1.833333 5.583333 4.000000
So we can aggregate into quarters, but we cannot print it using
2007 Jul 25
3
aggregate.ts
Consider the following scrap of code:
> x<- ts(1:50,start=c(1,11),freq=12)
> y <- aggregate(x,nfreq=4)
> c(y)
[1] 6 15 24 33 42 51 60 69 78 87 96 105 114 123 132 141
> y
Error in rep.int("", start.pad) : invalid number of copies in rep.int()
> tsp(y)
[1] 1.833333 5.583333 4.000000
So we can aggregate into quarters, but we cannot print it using