sysuse
Opens one of the four example datasets that come with Virata.
What we have
- the four bundled datasets,
vira.sample01tovira.sample04 sysuse dirto list them- they are inside the program, so there is nothing to download
Coming later
webuse- Stata's own example datasets, such as
auto.dta
How you write it
sysuse <name> [, clear] | sysuse dir
Square brackets mean optional. A vertical bar means choose one.
What it does
Nothing to download and nothing to find on disk: these ship inside the program. They are what every example in this manual runs on, so you can follow along exactly.
sysuse dir lists them. vira.sample01 and vira.sample02 are household survey data (spending, age, sex, rural or urban, state); vira.sample03 is employee records (department, pay, rating, how long they stayed); vira.sample04 is a monthly series.
Try it
. sysuse dir
vira.sample01 12,000 people over 8 survey rounds (2004-2018): year, state, sector, sex, age, ageband, education, hhsize, mpce, weight. Feeds every chart: `help graph <chart>` shows how. vira.sample02 6,000 households from one round, with the survey design (village, stratum, multiplier) for svyset and svy: practice. vira.sample03 4,000 employees: dept, region, gender, age, level, rating, salary, tenure_months, left. For attrition (stset/stcox), pay gaps and small groups. vira.sample04 96 months of visitors and hotel occupancy. For tsset, L./D./S12., tsline and tsdecomp.
The same thing in pandas and in R
R
library(haven)
df <- read_dta("dir.dta")
# This R has NOT been run against a real R yet: read it as documentation.