.- help for ^tabodds^ (STB-27: ssa8) .- Tabulation of odds by a categorical exposure variable ----------------------------------------------------- ^tabodds^ fail xvar [^if^ exp] [^in^ range] [fweight] [^,^ ^b^inomial^(^varname^)^ ^g^raph ^l^evel^(^#^)^ ^t^rend] Description ----------- ^tabodds^ tabulates the odds of failure by different levels of xvar, a cate- gorical explanatory variable. Confidence intervals for the odds are also given. For individual records, ^fail^ takes the values 0/1 and the ^binomial^ option is not used. For frequency records. ^fail^ takes the values 0/1, the ^binomial^ option is not used, and the frequencies are supplied using frequency weights. For binomial frequency records, which contain the number of failures out of a number of subjects, the variable ^fail^ contains the number of failures, and the number of subjects is supplied by the ^binomial^ option. Options ------- ^binomial(^varname^)^ gives the variable containing the number of subjects. ^graph^ requests a graph of odds against xvar; graph options are allowed. ^level(^#^)^ gives the level for the confidence intervals (default 95) ^trend^ produces a test for trend. Examples -------- . ^tabodds d smoke^ -- Individual records . ^tabodds D smoke, b(N)^ -- Binomial frequency records . ^tabodds d smoke [fweight=f]^ -- Frequency records Authors ------- David Clayton, MRC Biostatistical Research Unit, Cambridge david.clayton@@mrc-bsu.cam.ac.uk Michael Hills, London School of Hygiene and Tropical Medicine, London mhills@@lshtm.ac.uk Also see -------- STB: STB-27 ssa9 On-line: help for @mhodds@