pwd // print working directory cd "/Users/amandairish/Desktop/Biostat 212/Week 1" // change the working directory clear // clear any datasets/variable labels from Stata's memory log using "week 1 demo log", replace // start a new log, and overwrite an existing log of the same name if it exists di 8*53 // display - immediate commands/Stata as a calculator sysuse cancer.dta // use Stata's preloaded cancer dataset browse // opens the data browser window describe // description of the variable names, types, labels for all variables summarize // summary statistics (mean, std deviation, min, max) for all variables tabulate died // one-way tabulation of died tab died, row // one-way tabulation with frequencies by row tab died, col // one-way tabulation with frequencies by column codebook // detailed variable information log close // close the log