Usage
loddsratio(x, ...)
## S3 method for class 'default':
loddsratio(x, strata = NULL, log = TRUE,
ref = NULL, correct = any(x == 0L), ...)
## S3 method for class 'formula':
loddsratio(formula, data = NULL, \dots,
subset = NULL, na.action = NULL)
oddsratio(x, stratum = NULL, log = TRUE)
## S3 method for class 'loddsratio':
coef(object, log = object$log, \dots)
## S3 method for class 'loddsratio':
vcov(object, log = object$log, \dots)
## S3 method for class 'loddsratio':
print(x, log = x$log, \dots)
## S3 method for class 'loddsratio':
confint(object, parm, level = 0.95, log = object$log, \dots)## S3 method for class 'loddsratio':
as.array(x, log=x$log, \dots)
## S3 method for class 'loddsratio':
t(x)
## S3 method for class 'loddsratio':
aperm(a, perm, \dots)
Arguments
x
an object. For the default method a k-way matrix/table/array
of frequencies. The number of margins has to be at least 2.
strata, stratum
Numeric or character indicating the margins of a
$k$-way table x (with $k$ greater than 2) that should be employed
as strata. By default all dimensions except the first two are used.
ref
numeric or character. Reference categories for the (non-stratum)
row and column dimensions that should be employed for computing the
odds ratios. By default, odds ratios for profile contrasts (or sequential
contrasts, i.e., successive diffe
formula
a formula specifying the variables used to create a
contingency table from data. A conditioning
formula can be specified; the conditioning variables will then be
used as strata variables.
data
either a data frame, or an object of class "table"
or "ftable".
subset
an optional vector specifying a subset of observations to be used.
na.action
a function which indicates what should happen when
the data contain NAs. Ignored if data is a contingency table.
log
logical. Should the results be displayed on a log scale
or not? All internal computations are always on the log-scale but the
results are transformed by default if log = TRUE.
correct
logical or numeric. Should a continuity correction
be applied before computing odds ratios?
If TRUE, 0.5 is added to all cells; if numeric (or an
array conforming to the data) that value is added to all cells. By default,
a, object
an object of class loddsratio as computed by
loddsratio.
perm
numeric or character vector specifying a permutation of strata.
...
arguments passed to methods.
parm
a specification of which parameters are to be given confidence intervals,
either a vector of numbers or a vector of names. If missing, all parameters are considered.
level
the confidence level required for the confint method.