Module 4: Conditions and Subsetting Data Flashcards

1
Q

What is the general format for if-then statements?

A

If (condition) then action; else action;

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

How do you set up nested if-then statements?

A

If (condition) then action;
Else if (conditon) then action;
else/else if ….etc.;

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

What is the difference between drop and delete statement?

A

Drop excludes variables and delete excludes observations

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

T/F: if female is the same as if female = 1.

A

True

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