Transformation of series - returns NAs
Posted: Thu Nov 15, 2012 8:45 am
Hi,
I'm composing a program which makes a number of forecasts. At the beginning of the program, data is read from an Excel file. The data is in its original form, and further transformations are needed before the forecasts are made.
What I want is essentially that some of the series are transformed, but his, however, returns NAs as long as I perform it on the series themselves! For example, you may run the following program.
y is full of NAs where x consists of the differentiated original y series, and this is what I want. My solution is basically this, but instead of a generated series I apply this to my data read from Excel:
This feels a bit clumsy and I would like to find a cleaner way around this. Anyone have any ideas?
I'm composing a program which makes a number of forecasts. At the beginning of the program, data is read from an Excel file. The data is in its original form, and further transformations are needed before the forecasts are made.
What I want is essentially that some of the series are transformed, but his, however, returns NAs as long as I perform it on the series themselves! For example, you may run the following program.
Code: Select all
wfcreate q 1990q1 2009q4
genr y=nrnd
series x=d(y)
y=d(y)Code: Select all
wfcreate q 1990q1 2009q4
genr y=nrnd
rename y y2
y=d(y2)
d y2