Last chance! 50% off unlimited learning
Sale ends in
oddsratio
for 2 x 2 x
k-tables, along with confidence intervals.## S3 method for class 'oddsratio':
plot(x, confidence = TRUE, type = "o",
ylab = NULL, xlab = "Strata", whiskers = 0.1, ...)
logoddsratio
, computed for a 2 x 2
x k-table.TRUE
, confidence intervals are plotted for
each data point."Odds Ratio"
or "Log Odds Ratio"
, as appropriate.par
).oddsratio
data(CoalMiners)
l <- oddsratio(CoalMiners)
g <- seq(25, 60, by = 5)
plot(l,
xlab = "Age Group",
main = "Breathelessness and Wheeze in Coal Miners")
m <- lm(l ~ g + I(g^2))
lines(fitted(m), col = "red")
Run the code above in your browser using DataLab