This tutorial was written by Digital Studio Student Assistant, Michael Scarpetti. Learn more about Michael and our other student assistants here.

In this tutorial, the goal is to gain a basic understanding of Stata, a statistical analysis program that is used across many disciplines. While the interface of Stata may seem daunting, once you know how to use the functions available to you, using it becomes a breeze. Today, we will go over the basics of Stata, such as loading and importing different types of files, basic data analysis tools, and basic regression functions. While this program is used by many disciplines, the main goal of today is to show how it can be used to perform statistical analysis.

The first step is to load the data into the program. You will need a dataset, which can be in the form of a .dta, .xls, .csv, and other text files. Seen below is the menu needed to access the file loading. If it is a .dta file, you can click open and find it in your computer. If it is any other file, you will have to go down to import and do the same. ### Basic Data Inquiries

Listed Below are 4 essential statistical inquiries you can make and what they do. In order to do these functions, simply type the wording into the command section at the bottom.

• DESCRIBE: tells you about the dataset. Includes the number of observations, variables, and the size of the file. It also lists the various variables. • LIST (VAR 1 VAR 2): this command allows you to list out each observation of any variables you desire. In this case, you need to type the specific variable after the word LIST to get the desired outcome.
• SUMMARIZE: this command gives you the basic statistical numbers that you usually need to see when doing statistical analysis. It tells you the number of observations per variable, each variable’s mean, each standard deviation, and each variable’s maximum and minimum. The command can be shortened to SUM, and you can also summarize specific variables instead of the whole dataset if you wish. • CORRELATE (VAR1, VAR2, etc.): the correlate command gives you a correlation table of all variables or specific variables if desired. The command can also be shortened to CORR, as seen below. ### Running Regression on Stata

One key feature of Stata is its ability to run regressions on a number of different variables. Regression helps us understand how multiple variables relate to each other. This is a vital command when doing statistical work. The command for running a regression is: REGRESS (VAR1, VAR2, VAR3) As seen above, the regression analysis gives all of the important statistical numbers to help you understand a set of numbers. The command gives the coefficient, the standard error, the 95% confidence interval, and the R-Squared number. Doing all of this by hand would be tiresome and tedious work, so Stata saves a lot of time when finding doing statistical analysis.

### Conclusion

I hope this tutorial helps you in your pursuit of learning Stata. The Program is a great tool to use when analyzing datasets and large amounts of observations. If there is something you are unsure of and want more clarity on something, check out the Stata handbook, which is written by the creators of Stata. The link is listed below. I hope you learned something and good luck with your statistical endeavors!
{"ft_lang_label":"__label__en","ft_lang_prob":0.8968183,"math_prob":0.8445265,"size":3398,"snap":"2020-45-2020-50","text_gpt3_token_len":721,"char_repetition_ratio":0.12551561,"word_repetition_ratio":0.0,"special_character_ratio":0.20482637,"punctuation_ratio":0.12648809,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98502094,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,3,null,6,null,6,null,3,null,3,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-02T07:13:41Z\",\"WARC-Record-ID\":\"<urn:uuid:51f96d92-f935-4ee2-b333-03ba0d2d5106>\",\"Content-Length\":\"51616\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fa4af4c7-4369-47d3-b0d5-98c04f71d416>\",\"WARC-Concurrent-To\":\"<urn:uuid:37703f16-98a9-42c4-a5cf-65c5eb6eff62>\",\"WARC-IP-Address\":\"136.167.2.251\",\"WARC-Target-URI\":\"https://ds.bc.edu/intro-to-stata/\",\"WARC-Payload-Digest\":\"sha1:5Y3RXEQVDFCTPON6RADR6I654BDR45WK\",\"WARC-Block-Digest\":\"sha1:6CFMF3ZDQOYTBVNZH4YG6K463N4K5US4\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141692985.63_warc_CC-MAIN-20201202052413-20201202082413-00028.warc.gz\"}"}