help wfstyle: Stylistic conventions for your workflow

Labels and notes

label data label data "CWH analysis file \ 2006-12-07"

note: note: mydata01.dta \ Sample dataset \ mydofile.do jsl 2008-06-28.

label var label var <varnm>: <key info in first 30 columns>

label var pub1 "publications in year 1"

note <varnm>: note pub9trunc: pub9 truncated at 20 \ wf-notes.do jsl 2008-06-26.

label define label def Lyesno 0 0_no 1 1_yes

label value label val healthy Lyesno

Note A value label used by one variable should have
the same name as the variable; labels used by multiple variales
should have names that begin with L.

Variable names

: 12 or less characters; 10 or less if source variable.

Capitals B: binary (e.g., Bedhs)

letters I: indicator variable

in M: indicator for missing data (e.g., Mfemale)

names N: negatively coded scale (e.g., Nwarmmom)

P: positively coded scale

S: source variable that has never been changed

V: version of variable (e.g., edyrsV2)

X: temporary variable that can be deleted

Do-file names

: project[-task]step[letter][V#][-desc].do

epsl-flim01a-logit.do; group01a-getdata.do

Dataset names

Standard <dataset-name>##.dta (e.g., science02.dta)

Temporary x-<name>##.dta (e.g., x-science02.dta)

1-time use <do-file-name>.do (e.g., mypgm.dta)

Reprint names

: <last-name> <year> <journal-abbrev> <description>

trivedi 2008 JAE Count models.pdf

Comments

// #1
// Load data and select sample

// =================================================
// = Preliminary analyses based on pre-release data

Also see

Workflow