Today we will explore the descriptive statistics of the panel data. The panel data structure is more complex than cross-sectional or time series, so the descriptive statistics may be challenging to understand. Let's use the long-form panel dataset we saved last time to illustrate panel data's basic concepts and features. You can also download the dataset from the link below. The dataset contains multiple observations of US workers from 2010 to 2018.
https://drive.google.com/file/d/1BfUQ...
First, let's set the panel data by typing "xtset," followed by the panel variable "ID" and the time variable "year."
The command "xtdescribe" tells us about the patterns of the panel data. It is a balanced panel dataset. There are 4,586 workers in the data over five time periods. The distribution of "T_i" tells us all workers are observed for five time periods.
Next, let's examine the summary statistics of the panel data. Panel data have two dimensions, across individuals and over time. An essential feature of the panel data is the between-variation and the within-variation.
#BetweenVariation #WithinVariation #xtsum #xttab #xtdescribe
*************************************
*56. Panel Data Descriptive *
Statistics *
*************************************
capture log close
log using panel2.log, text replace
*Open a panel dataset for US workers
use "https://134997773-924437014403349320....", clear
*Set panel data
xtset ID year
*Describe pattern of panel data
xtdescribe
xtdescribe if lwage!=.
*Summarize panel data
xtsum wagerate
xtsum lwage
xtsum schooling
*Tabulate panel data
xttab union
log close
【Free Courses on My YouTube Channel】
Economics in Real Life:
• Economics in Real Life
Solutions to Introductory Econometrics A Modern Approach 7th Edition:
• Solutions to Introductory Econometric...
Solutions to Microeconomics Theory and Applications with Calculus:
• Solutions to Microeconomics Theory an...
Stata Tutorials:
• Stata Tutorials
Five Minute Econometrics (Econometrics Tutorials):
• Five Minute Econometrics (Econometric...
Introductory Microeconomics:
• Introductory Microeconomics (2022)
Introductory Stata:
• Introductory Stata (2022)
Drum Covers:
• Drum Covers
【粵語Cantonese】現實生活中的經濟學:
• 【Cantonese粵語】現實生活中的經濟學
【國語Mandarin】現實生活中的經濟學:
• 【Mandarin國語】現實生活中的經濟學
【粵語Cantonese】微觀經濟學基礎:
• 粵語Cantonese微觀經濟學基礎2022
【粵語Cantonese】五分鐘計量經濟學(計量經濟學輔導):
• 【Cantonese粵語】五分鐘計量經濟學(計量經濟學輔導)
【國語Mandarin】五分鐘計量經濟學(計量經濟學輔導):
• 【Mandarin國語】五分鐘計量經濟學(計量經濟學輔導)
On the Road:
• On the Road
【Become a Supporter/Member of the channel ($2.99) to get PDF transcripts for】
1. Solutions to Microeconomics Theory and Applications with Calculus 5th Edition,
2. Solutions to Introductory Econometrics A Modern Approach 7th Edition,
3. Introductory Stata (2022),
4. Introductory Microeconomics (2022), and
5. Introductory Stata: Summary Statistics and Data Management
/ @bobwenecon
In addition to the videos on my YouTube channel, you can also learn Stata from my free Alison online courses.
Introductory Stata: Summary Statistics and Data Management
https://alison.com/course/introductor...
Introductory Stata: Graphics and Data Visualization
https://alison.com/course/introductor...
Watch video Introductory Stata 56: Panel Data Descriptive Statistics (xtdescribe, xtsum, xttab) online without registration, duration hours minute second in high quality. This video was added by user Dr. Bob Wen (Stata, Economics, Econometrics) 09 March 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,152 once and liked it 76 people.