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

Financial Accounting Theory (FAT) STATA Assignment graded 8.0

Rating
4.0
(1)
Sold
8
Pages
6
Uploaded on
19-04-2018
Written in
2017/2018

This document includes all commands that were used during the Basu-Replication. In addition, a brief guide is included of how to work with stata. The Basu-replication was conducted during Financial Accounting Theory and was graded with an 8.0. Disclaimer: I am not responsible for subsequent plagiarism. This document can only be used for orietation purposes.

Show more Read less
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
April 19, 2018
Number of pages
6
Written in
2017/2018
Type
Case
Professor(s)
Unknown
Grade
Unknown

Subjects

Content preview

Financial Accountnn heory (2018):
STATA Replicatio Basu et. Al: the .Di-File
Grade: 8/10
- Basic Commands + .Do-fle


Introduction:
S A A is a statstcal pronram comparable to SPSS. However, S A A can run sinnifcantly more
observatons and variables than SPSS at the same tme. n order to work with S A A you must
understand how the basics work. he basics and basic commands are explained, the second part will
be the Basu Replicaton.

1.1 Stata:
When workinn with Stata you will predominantly use two thinns:
- The primpt paoel: he larne panel in the botom middle, this is where you will be enterinn
your commands
- The di.fle: Which can be accessed throunh the .do fle editor ( )
NOTE: yiu cao access aod edit yiur data usiog ( ) this hiwever is disciuraged wheo diiog
research!

he do-fle editor is similar to windows notepad. encourane you to use it as it makes empirical
analysis much faster. For example, you could open the .do fle, copy-paste the code into the
command window of a diferent data set and run it (provided that the data set has the same
variables!, otherwise it will not work!).

1.2 BASIC Cimmaods:
NO E: Watch out with usinn CAP AL CHARAC ERS as some code will not run properly if capital
numbers are used!

 Generate variables
Use the geo command
Example: nen lanprice = prccd[_n-1]
A new variable is created by usinn observatons from a diferent variable column. his can also be
useful to intenrate formulas (e.n. see returns in the .do fle).

 Drop observatons
Use the drip if command to delete observatons.
Example: drop if fyear<12 Drop all observatons if year < 12 months
You can use it to drop missinn observatons as well! For this you’ll use drip if missiog (variable
oame). All missinn observatons will be deleted within 1 variable column.

 Sortnn data
Use the sirt command.
Example: sort isin datadate All S N codes are sorted by date!

 Summarize data in statstcal table
Use the summarize command to make a statstcal table with all basic values such as averane.
Example: summarize wret wpps weps Summarized variables wret, wpps and weps.

 Runninn a renression
Use the regress command.
Example: renress depvar dummywret wret dummywret##c.wret
n order to create an interacton put ##c. between two variables (or nenerate a new interacton
variable).
$10.78
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Reviews from verified buyers

Showing all reviews
6 year ago

4.0

1 reviews

5
0
4
1
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

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.
Tilburgstudent Erasmus Universiteit Rotterdam
Follow You need to be logged in order to follow users or courses
Sold
338
Member since
7 year
Number of followers
168
Documents
43
Last sold
2 weeks ago

3.6

34 reviews

5
4
4
16
3
11
2
2
1
1

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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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