File & Data Management Flashcards

(7 cards)

1
Q

Set working directory

A

cd “directory_path”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Load dataset

A

use “filename.dta”, clear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Save dataset

A

save “filename.dta”, replace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Start logging session (file)

A

log using filename.log , replace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Close log file

A

log close

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Clear dataset from memory

A

clear // remove any other dataset that was already in this STATA memory//

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

First must do’s

A

clear all
capture log close // close log if any was running before //

How well did you know this?
1
Not at all
2
3
4
5
Perfectly