COMM 205 Study Guide - Midterm Guide: Missing Data, Stata, Frequency Distribution
Document Summary
Creates a constant containing the mean (average) of an expression. Creates a constant containing the median of an expression. Creates a constant containing the maximum value of an expression. Creates a constant containing the minimum value of an expression. Creates a constant containing the number of nonmissing observations. Creates a constant within varlist containing the sum of an expression duplicates: check for duplicate observations special: generate is required duplicates tag [varlist] [if] [in], generate[newvar] One-to-one match merging: merge (mer) (merg) one observation is linked with one observation in other dataset merge 1:1 varlist using filename. dta [, options] (nogenerate: will not generate a _merge variable) One-to-many match merging: an observation from the master dataset can be matched to multiple observations in the using dataset merge 1:m varlist using filename. dta [, options] (nogenerate: will not generate a _merge variable) * - maybe only be used at beginning of line.