Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Example 3.3 [3mm] Analysis of data in Gretl: descriptive statistics, Exams of Descriptive statistics

Compute the descriptive statistics of the variables total visitors, visitors coming from Spain and foreign visitors. b. Save the output in MS format (Word). c.

Typology: Exams

2021/2022

Uploaded on 08/01/2022

hal_s95
hal_s95 🇵🇭

4.4

(652)

10K documents

1 / 21

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Example 3.3
Analysis of data in Gretl: descriptive statistics
Pilar González and Susan Orbe
Dpt. Applied Economics III (Econometrics and Statistics)
Pilar González and Susan Orbe | OCW 2014 Example 3.3 Data analysis 1 / 21
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Example 3.3 [3mm] Analysis of data in Gretl: descriptive statistics and more Exams Descriptive statistics in PDF only on Docsity!

Example 3.

Analysis of data in Gretl: descriptive statistics

Pilar González and Susan Orbe

Dpt. Applied Economics III (Econometrics and Statistics)

Contents

(^1) 3.3.1. Gretl session.

(^2) 3.3.2. Visitors to Bilbao.

(^3) 3.3.3. Pizza consumption.

Example 3.3.1. Gretl session.

Descriptive statistics in a Gretl session.

Clicking on the icon session icon view in the main window Toolbar, you may see the objects included by default in a Gretl session.

Summary contains by default the table of descriptive statistics for all the variables in the data file. Correlations contains by default the correlation matrix for all the variables in the data file.

Contents

(^1) 3.3.1. Gretl session.

(^2) 3.3.2. Visitors to Bilbao.

(^3) 3.3.3. Pizza consumption.

Example 3.3.2. Visitors to Bilbao.

Summary statistics.

To obtain the descriptive statistics of one or more variables, go up to the Menu Bar and click View –> Summary statistics

Example 3.3.2. Visitors to Bilbao.

Summary statistics.

Select the variables of interest Output

Example 3.3.2. Visitors to Bilbao.

Summary statistics.

Save this file in your own folder (in this case, in the Desktop).

Example 3.3.2. Visitors to Bilbao.

Correlation matrix.

To obtain the correlation matrix for two or more variables, go up to the Menu Bar and click View –> Correlation matrix

Example 3.3.2. Visitors to Bilbao.

Results.

  • The sample mean of total visitors is 39601, while the sample mean of Spanish visitors is 26870 and the sample mean of foreign visitors 12731. Therefore, on average, the flow of foreign visitors to Bilbao is less than half of the flow of Spanish visitors.
  • Given the values of the coefficients of variation and the IQ rank, it may be concluded that the sample variability of the variable foreign visitors is much higher (almost double) than the variability of Spanish visitors.
  • As expected, the correlation coefficients are quite high, close to 1.

Contents

(^1) 3.3.1. Gretl session.

(^2) 3.3.2. Visitors to Bilbao.

(^3) 3.3.3. Pizza consumption.

Example 3.3.3. Pizza consumption.

Summary statistics.

Following the steps explained above, you may obtain the descriptive statistics of the variables consumption, income and age.

Example 3.3.3. Pizza consumption.

Correlation matrix.

Following the steps explained above, you may obtain the correlation matrix among consumption, income and age.

Example 3.3.3. Pizza consumption.

To save the correlation matrix in LaTeX format, click on the icon TeX in the correlation matrix window.

Mark Save in the dialog box.

Example 3.3.3. Pizza consumption.

Save this file in your folder (in this case, in the Desktop).