/* TUTORIAL UNITAB Author: Nicola Orsini - IMM, KI Date: 2004/04/03 */ capture net install http://nicolaorsini.altervista.org/stata/unitab which unitab webuse lbw, clear tab low su age su age if low == 1 logistic low age unitab low age xtile ageq = age, nq(4) tab ageq low, row nokey chi2 tab ageq low, row nokey exact xi: logistic low i.ageq unitab low, c(ageq) unitab low, c(ageq) ex unitab low age, c(ageq) tab race low, row nokey xi:logistic low i.race unitab low , c(race) unitab low age ht ui, c(race smoke ageq) unitab low age ht ui, c(race smoke ageq) l(90) f(%6.5f)