Thanks, Allin,

Really what I want is to convert wide data to long.  Which SPSS can do.  As I don’t want to teach the students two packages, I think I will teach them how to manipulate the data in excel first and then read it in.

Alison

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: Allin Cottrell <cottrell@wfu.edu>
Sent: 28 September 2022 21:29
To: Gretl list <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.

On Wed, 28 Sep 2022, Alison Loddick wrote:

> Thank you.
>
> I wonder if changing the data format will make it easier - as I
> will have to teach students with limited ability.

recommendation would be to create a proper gretl panel dataset (gdt
file) using the method I showed, and share that with your students.

> I did try the process in the manual, but I kept getting only one
> year of data when I put it into the panel structure

The method discussed in the manual is designed to handle a somewhat
simpler case, where the organization of the original source data is
closer to, though not equal to, what gretl wants. Frankly, the
format you're talking about is pretty weird and I'd be surprised if
any econometric software could make sense of it without a good deal
of work.

In case there's any doubt, what gretl wants from a panel dataset is
a column for each variable and a block of T rows, in temporal order,
for each of the N units or "individuals". Considered as a matrix it
will be NT x v, where v is the number of variables. This is the
"natural" generalization of cross-sectional data (N x v) and
time-series data (T x v).

Allin
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/

University of Northampton: Transforming Lives and Inspiring Change www.northampton.ac.uk This e-mail is private and may be confidential and is for the intended recipient only. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We virus scan all E-mails leaving The University of Northampton but no warranty is given that this E-mail and any attachments are virus free. You should undertake your own virus checking. The right to monitor E-mail communications through our networks is reserved by us.

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.