File & Data Management Flashcards
(7 cards)
1
Q
Set working directory
A
cd “directory_path”
2
Q
Load dataset
A
use “filename.dta”, clear
3
Q
Save dataset
A
save “filename.dta”, replace
4
Q
Start logging session (file)
A
log using filename.log , replace
5
Q
Close log file
A
log close
6
Q
Clear dataset from memory
A
clear // remove any other dataset that was already in this STATA memory//
7
Q
First must do’s
A
clear all
capture log close // close log if any was running before //