write a stata program that does the following: At the top of the do le, create a \header…
Jump to turn (7)
- 1write a stata program that does the following: At the top of the do le, create a
- 2Next load the data into Stata. In your do le, use the command import. This data
- 3Calculate the mean, standard deviation, minimum and maximum for each variable in
- 4Create a histogram for GPAs with 10 bins and save this as a pdf called "hist.pdf
- 5Create a scatter plot of GPA (y-axis) and SAT score (x-axis), and save this as s
- 6Use the tabulate female command to obtain counts of male and female students.
- 7Now modify the tabulate command from above to obtain counts of male and female s
- User
write a stata program that does the following: At the top of the do le, create a \header comment" which describes what this code is for, who and when it was written by and any other important information. In Stata, you can add comments (lines that are not interpreted by the computer) using * comment text or /* comment text here */. 6. After the header write the command clear all. This will clear everything from Stata's memory. Then use the command cd ``'' to change Stata's working directory to the folder you just created. is the location of the folder you created in the rst step. On my Mac laptop this would be something like /Volumes/Classes/ECON375/labs/lab1 on my desktop PC it would be something like C:/User/Documents/Classes/ECON375/labs/lab1.
- Assistant
Here is a sample Stata program that follows the instructions you provided: