Introducing Stata Flashcards

(30 cards)

1
Q

Load a dataset

cmd

A

sysuse dataset

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

Get help with command

cmd

A

help commandname

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

Get a quick glimpse at the data

cmd

A

browse

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

What are the columns in the Data Editor?

A

variables

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

What term refers to the rows in a dataset?

A

observations

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

How does Stata display numeric categorical data in a human-readable way?

A

value labels

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

How are missing values displayed in Stata’s Data Editor?

A

.

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

How can you view the structure of the dataset in Stata?

cmd

A

describe

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

How can you view any notes attached to the dataset in Stata?

cmd

A

notes

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

What is the short description of the dataset called?

A

data label

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

What does the storage type indicate?

A

How data is stored (e.g., numeric or string).

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

What does the display format control?

A

How data is shown, e.g., number of decimal places for numeric types

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

How can you get a table of summary statistics for all variables?

cmd

A

summarize

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

What type of variables does summarize work with?

A

numeric

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

In-depth description of the structure, contents, and values of variables

cmd

A

codebook

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

Get in-depth information on a single variable

cmd

A

codebook variablename

17
Q

How is text data stored in Stata?

18
Q

What makes a variable suitable as an identifier?

A

Has unique values for all observations

19
Q

How does Stata represent missing text values?

A

As blanks within strings.

20
Q

What is a varlist in Stata?

A

A list of variables specified in a command, e.g., codebook varname1 varname2

21
Q

What is an indicator variable?

A

A variable that only takes values 0 and 1

22
Q

Why is it efficient to store indicator variables as bytes?

A

It uses less memory, which is important in large datasets

23
Q

How are value labels useful?

A

They display descriptive text instead of numeric codes.

24
Q

Why are indicator variables useful in statistical models?

A

They are easy to incorporate as categorical predictors.

25
How can you browse a subset of observations based on a condition? ## Footnote cmd
browse if *condition*
26
Function to check if a variable has missing values in a condition? ## Footnote fnc
missing(*varname*)
27
What does the **if** qualifier do in Stata?
It restricts the command to observations where the specified condition is true.
28
What command can you use to list specific observations in Stata? ## Footnote cmd
list
29
How can you list observations where a variable has missing values? | cmd
list *varname* if missing(*varname*)
30