AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Stata regress if not12/5/2023 ![]() ![]() ![]() In the preliminary stages of your work, you may feel that a do-file is more hindrance than it is useful. To start a do-file, click on the icon that looks like a notepad on the top-left corner of your Stata viewer. Working from do-files lets other people see what you did if you ever need advice, it makes your work reproducible and it allows you to correct small mistakes somewhat painlessly. This is a general advice that applies to any work you do on Stata. This way, if you make a mistake, you will not have ruined your entire dataset and you will not need to start again from scratch. You want to write the commands in a do-file, and then run it. Never clean a dataset by blindly entering commands (or worse, clicking buttons). Simply type “help” in the command window, followed by the name of the command you need help with and press the Enter key: Stata has a built in feature that allows you to access the user manual as well as help files on any given command. Whether this is your first time cleaning data or you are a seasoned “data monkey”, you might find some useful tips by reading more. Your first pass at a dataset may involve any or all of the following: Stata is a good tool for cleaning and manipulating data, regardless of the software you intend to use for analysis. It will very often be the first assignment of a research assistant and is the tedious part of any research project that makes us wish we HAD a research assistant. Creating a number of smaller subsets based on research criteriaĬleaning data is a rather broad term that applies to the preliminary manipulations on a dataset prior to analysis.Some useful tips before you get started. ![]()
0 Comments
Read More
Leave a Reply. |