Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 1 fuera de 6 páginas
Caso

Financial Accounting Theory (FAT) STATA Assignment graded 8.0

Document preview thumbnail
Vista previa 1 fuera de 6 páginas

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.

Vista previa del contenido

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).

Información del documento

Estudio
Subido en
19 de abril de 2018
Número de páginas
6
Escrito en
2017/2018
Tipo
Caso
Profesor(es)
Desconocido
Grado
Desconocido
$11.40

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Tilburgstudent
3.6
(34)
Vendido
343
Seguidores
168
Artículos
43
Última venta
1 mes hace


Reseñas de compradores verificados




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes