0 of 2 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 2 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0) 0 Essay(s) Pending (Possible Point(s): 0)
If you didn’t highlight any lines in the .do file, then Stata will attempt to execute all commands in order. If Stata runs into an error while executing the .do file, then it will stop at that point and not attempt to execute any further lines.
If you do highlight some lines, then Stata will attempt to execute those lines only.
‘use’ is how Stata imports Stata datasets (which end in the ‘.dta’ extension), and the ‘clear’ option tells Stata to clear any existing dataset in memory (if you have a dataset in memory and do not include the ‘clear’ option, then Stata will return an error).
This command returns an error for you because your computer (probably) does not have a file path like the one specified here: “C:UsersJeffDropbox (IDinsight)Technical bootcamp onlineIntro to Stata”. Stata will not be able to find the applicable filename and will return an error. To run this command on your computer, you need to specify the file path where Stata can find the EG DIB dataset. A better way to do this is to change your directory to that folder, and then import the dataset; this way, someone else who wants to use your .do file only needs to change their directory to the applicable folder on their harddrive, and doesn’t need to change it every time you import or export a file:
cd “C:UsersJeffDropbox (IDinsight)Technical bootcamp onlineIntro to Stata”
use “EG DIB_Main Student Data.dta”, clear
1. If you press the Execute icon at the top of a .do file without highlighting any lines, what will happen?
2. Why does the command ‘use “C:\Users\Jeff\Dropbox (IDinsight)\Technical bootcamp online\Intro to Stata\EG DIB_Main Student Data.dta”, clear’ return an error?
6 December 2024
5 December 2024
4 December 2024
3 December 2024
12 September 2022
Username or Email Address
Password
Remember Me