Introducing Stata Flashcards
(30 cards)
Load a dataset
cmd
sysuse dataset
Get help with command
cmd
help commandname
Get a quick glimpse at the data
cmd
browse
What are the columns in the Data Editor?
variables
What term refers to the rows in a dataset?
observations
How does Stata display numeric categorical data in a human-readable way?
value labels
How are missing values displayed in Stata’s Data Editor?
.
How can you view the structure of the dataset in Stata?
cmd
describe
How can you view any notes attached to the dataset in Stata?
cmd
notes
What is the short description of the dataset called?
data label
What does the storage type indicate?
How data is stored (e.g., numeric or string).
What does the display format control?
How data is shown, e.g., number of decimal places for numeric types
How can you get a table of summary statistics for all variables?
cmd
summarize
What type of variables does summarize work with?
numeric
In-depth description of the structure, contents, and values of variables
cmd
codebook
Get in-depth information on a single variable
cmd
codebook variablename
How is text data stored in Stata?
string
What makes a variable suitable as an identifier?
Has unique values for all observations
How does Stata represent missing text values?
As blanks within strings.
What is a varlist in Stata?
A list of variables specified in a command, e.g., codebook varname1 varname2
What is an indicator variable?
A variable that only takes values 0 and 1
Why is it efficient to store indicator variables as bytes?
It uses less memory, which is important in large datasets
How are value labels useful?
They display descriptive text instead of numeric codes.
Why are indicator variables useful in statistical models?
They are easy to incorporate as categorical predictors.