COMM 205 Final: reference sheet comm 205 final
Document Summary
Syntax: tab varname [if varname == value], option. Produces frequency distribution table of each case(categorical variable) in a variable. To rearrange in descending order, invoke sort option. Ie: tab loc if fyear==2012, sort summarize/summ generate/gen gen new name = what it is equal to gen scandinavian = 1 if loc== nor | loc==swe clear use [**file path here**]. dta , clear. Produce measures of central tendancy & variability. Will produce: # of observations, avg (mean), standard deviation, max, min. B/c gen is not an if statement, we use one = Unless if statement is invoked, gen is applied to every single case in your data set. If you want to open a new dataset, we must clear the old one tab with sum tab varnames, sum (varname) Tab is paired with categorical values, sum is paired with numeric. Enclose text trings that are not var. or commands with quotes. When looking at tlog in detail any year.