Hello,
I am sorry, after seeing your example, I have to admit, that my .csv file was not set up
correctly.
I had the original data in excel (each series in a separate column) and saved it as a .csv
(comma separated), but the data was columnwise.
I tried to save the file as tab-separated text file and the append function worked out, as
it is supposed to work.
Again thanks for your help and sorry for causing the trouble.
Jan
________________________________________
Von: Plus.line MailSystem [cyrus(a)mailer.plusline.de] im Auftrag von Allin Cottrell
[cottrell(a)wfu.edu]
Gesendet: Dienstag, 14. August 2012 13:55
An: Gretl list
Betreff: Re: [Gretl-users] Import data as panel or change existing data set structure
On Tue, 14 Aug 2012, Sven Schreiber wrote:
Am 14.08.2012 09:56, schrieb Jan Tille:
> Hello, thank you for the hints. The append command worked out quite
> well, at least if I have only one series to append, unfortunately, it
> doesn't work if I try to append more than one series simultaneously.
> Gretl stopps and tells me, that the data frequency does not match,
> though all new series are of equal length.
>
> As I do not have a lot of time series to append, I can import them
> one by one.
Hm, I don't have much experience with this feature myself, but it sounds
as if it really should work, at least from the help text of the append
command.
Yes, it should. So long as the length of the time series to be
appended matches the time dimension of the panel. Here's a simple
test case.
<hansl>
# create a couple of "time series" of length 20
nulldata 20
series x1 = index * 2
series x2 = index * 3
store x.csv x1 x2
# create a panel dataset, 5 units over 20 periods
nulldata 100
setobs 20 1:1 --stacked-time-series
genr unit
genr time
# append the two time series
append x.csv
print unit time x1 x2 -o
</hansl>
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users