Virata manual

recipe

Worked examples you can read, run or copy and edit.

What we have

  • recipe dir, show, run and copy; seven worked do-files

Coming later

  • recipes of your own in the list

How you write it

recipe dir | show n | run n | copy n

Square brackets mean optional. A vertical bar means choose one.

What it does

Seven complete pieces of work on the bundled data, each starting with the question it answers and who would be asking it — staff turnover, a pay gap, survey shares, seasonality.

recipe dir lists them, recipe show 01 prints one so you can read it, recipe run 01 runs it end to end, and recipe copy 01 drops a copy in your folder to change.

The fastest way into the program: find the recipe closest to your question and edit it.

Try it

. recipe dir
Worked examples -- `recipe run <n>` runs one, `recipe show <n>` prints it:

  01  Who leaves, and how fast?
      how long do people last, and what makes them leave sooner?
  02  Is there a pay gap, and how much is unexplained?
      do women earn less than men, and how much of it is a gap in the SAME job?
  03  A share, with the survey design in the standard error
      what share of the population is in each group, and how sure are we?
  04  Share a table without pointing at individuals
      can I publish these numbers without identifying anyone?
  05  Why did my merge match so few rows?
      I merged two files and far fewer rows matched than I expected.
  06  Trend, season, and growth in a monthly series
      is business growing, or is it just summer?  What is the real trend?
  07  The same analysis in Stata, Python and R
      I know one of these languages -- how do I do it in another?
The same thing in pandas and in R

R

# no R form for `recipe` yet -- see docs/r-equivalents.md

Nearby

set log help manual display local