set more 1 log using agr72.log set prefix c:\stata\work\ use agr72 loglin count dept male admitted, fit(dept,male,admitted) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept male,admitted) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept admitted,male) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept,male admitted) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept male,dept admitted) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept male,male admitted) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept admitted,male admitted) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept male,dept admitted,male admitted) resid drop _cellhat-_stdres loglin count dept male admitted, fit(dept male admitted) resid drop _cellhat-_stdres log close