100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary of STATA clips for Empirical Finance

Rating
-
Sold
1
Pages
4
Uploaded on
02-12-2020
Written in
2020/2021

This document is a summary of all relevant content in the STATA clips for the course Empirical finance.

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
December 2, 2020
Number of pages
4
Written in
2020/2021
Type
Summary

Subjects

Content preview

Week 1: OLS, Dummies, model adequacy, assumptions and inference/testing

Dummies: In STATA, suppose you want to create a level/slope dummy with a reference category for
different continents you can easily use the code: xi i.continent (where continent contains the
different continens) to create a level dummy and we can use the code: xi i.continent*variable to
create a slope dummy for the continent with another variable.



Week 2: Panel data

Long vs wide format: In STATA the long format for panel data is when the time observations go from
top to bottom and the variable observations from left to right, while the wide format has all variables
with their time observation from left to right. For convenience purposes we need to reshape the data
from wide to long format.




With the code bysort you can sort on time or entity to perform transformations in the data, such that
you can calculate the mean of a variable per observation, or per time period.



Fixed effects: When you do a regression in state with panel data you first need to show stata you
have panel data with xtset and the corresponding identity indicator and time indicator. Additionally,
if you do a panel data regression with fixed firm effects, if there are variables included in the
regression which do not variate per entity (think of, for example a dummy variable), they will
automatically drop out due to collinearity issues. The STATA output of a fixed effects regression is
shown below, it is such that you cannot interpret the R-squared of the between and overall part, only
that of the within R-squared. Additionally, at the bottom there is output of an F-test, this F-test tests
if the dummies utilized for the fixed effects are actually significant, such that we know if we need the
fixed effects model or could have just done a pooled regression. The sigma u at the bottom give the
standard deviation of the fixed effects. The sigma e gives the standard deviation of the root mean
squared error. The rho gives the fraction of the variance which is due to the fixed effects (this thus
shows how much variation actually comes from within each entity).

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Elmar1999 Vrije Universiteit Amsterdam
Follow You need to be logged in order to follow users or courses
Sold
222
Member since
6 year
Number of followers
160
Documents
44
Last sold
1 day ago
Summaries of economics and business economics at the VU

Honours student economics and business economics at the Vrije Universiteit Amsterdam. I make high quality summaries for myself and spread the love by publishing them for fellow students on Stuvia.

4.2

25 reviews

5
9
4
13
3
2
2
1
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions