.- help for ^oddsrci^ [STB-51: sbe30] .- . Confidence intervals for odds ratios ------------------------------------ . ^oddsrci^ [weight] [^if^ exp] [^in^ range] , ^c1(^cond1^) c2(^cond2^)^ [^lev^el^(^#^)^ ^tab^opt^(^tab_options^)^ ^none^ ^all^ ^ag^resti ^co^rnf ^ga^rt ^wo^olf] . ^oddsrci ?^ . ^fweights^ are allowed; see help @weights@. . . Description ----------- . ^oddsrci^ creates a 2x2 table from a pair of Boolean conditions (^cond1^ and ^cond2^) and computes the odds ratio and an associated confidence interval, using any of four different estimation methods. Conditions cond1 and cond2 are used to de- fine temporary indicator variables, and the @tabulate@ command is then applied to those variables to create the table. . The second syntax above displays a brief reminder of the first syntax. . . Options ------- . ^c1(^cond1^)^ provides a Boolean (true-false) expression that defines the rows of a 2x2 table. [Not optional.] . ^c2(^cond2^)^ provides another Boolean (true-false) expression that defines the columns of a 2x2 table. [Not optional.] . ^level(^#^)^ specifies the desired confidence level. May be fractional and may be specified as a percentage (97.5) or a proportion (.9633). . ^tabopt(^tab_options^)^ is used to pass options to the @tabulate@ command; only the ^nofreq^ option is unavailable. . ^all, none^ choose among the following confidence intervals in the obvious way. . ^agresti^ produces the "endpoint-adjusted, independence smoothed" confidence in- terval recommended by Agresti (1999). [This is the default.] . ^cornf^ yields the Cornfield confidence interval, as computed by @cci@. . ^gart^ computes the Anscombe-Gart-Haldane confidence interval. . ^woolf^ requests the Woolf confidence interval (same as in @cci@). . . Note ---- . For details of the various odds ratio confidence interval methods, see: Agresti, A. (1999). On logit confidence intervals for the odds ratio with small samples. ^Biometrics^, 55, 597-602. . . Examples -------- . . ^oddsrci if !missing(sex), c1(died) c2(sex == "M") lev(.975) woolf gart^ . ^oddsrci if sex == "M", c1( (loss>0)&(age>55) ) c2(bodywt>200) all tab(V)^ . ^oddsrci, c1( (age>60)|(age<20) ) c2(res=="rural") none tab(exact col row)^ . . Author ------ . John R. Gleason, Syracuse University, Syracuse NY, USA (loesljrg@@accucom.net) [This is Version 1.0.1 (01Aug1999).] . . Also see -------- . Manual: ^[R] epitab^ ^[R] tabulate^ On-line: help for @epitab@, @cci@, @tabulate@, @oddsrcii@