Thank you both.
Alison Loddick
BSc MSc PGCE CStat
Learning Development Tutor (Mathematics and Statistics)
Library and Learning Services
DDI
+44 (0)1604 893502
northampton.ac.uk
University of Northampton,
Waterside Campus,
University Road, Northampton, NN1 5PH United Kingdom
From: Sven Schreiber <sven.schreiber@fu-berlin.de>
Sent: 28 September 2022 13:37
To: gretl-users@gretlml.univpm.it
Subject: [Gretl-users] Re: cross-sectional panel data
[CAUTION - EXTERNAL EMAIL] Please ensure you do not reply, click links, or open attachments unless you have verified
the sender and know the content is safe.
Am 28.09.2022 um 14:00 schrieb atecon:
Am 28.09.2022 13:38 schrieb Alison Loddick:
Hi,
I think this is a simple question but I am new to Gretl and keep
trying things without success
I have data with variables and years as columns, and my rows are
companies, so my data variables look like
Company name,ROE_year 1, ROE_year 2, ROE_year 3, ROE_year 4, Var2_year
1, Var2_year 2, Var2_year 3, Var2_year 4, Var3_year 1, Var3_year 2,
Var3_year 3, Var3_year 4, Etc.
Hi Alison,
please have a look at the stack() function ("help stack") and also at "stack_data" package via:
...
You need to stack your series which refer to some specific year.
Section 4.5 of the gretl manual also deals with the 'stack' function. But in this case I don't think it's straightforward, Artur, it's not a case that is directly covered. At least that's how it seems to me.
My suggested way until someone comes up with a better idea would be to split the file by column blocks such that each resulting new file would only contain a single variable (ROE, Var2, Var3, etc.). Once the individual variables have been read into gretl,
merging them should not be a problem.
cheers
sven
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.