| EO | R Documentation |
blm and lexpit objects.Returns a list of expected to observed counts and the specified confidence interval. The argument group can be used to estimate this ratio by the categories of the categorical variable group. If population-based case-control data is used to fit the model, the expected counts are for the population and make use of the sampling weights.
EO(object, index = NULL, level = 0.95)
object |
object of class |
index |
factor for computing E/O comparison by subgroups |
level |
numeric, confidence level (between 0 and 1) for the E/O ratios |
Data frame with:
Eexpected count
Oobserved counts
EtoOratio of expected to observed
lowerCIlower endpoint of confidence interval for E over O ratio
upperCIupper endpoint of confidence interval for E over O ratio
Stephanie Kovalchik s.a.kovalchik@gmail.com
data(ccdata) fit <- blm(y~female+packyear,data = ccdata, weight = ccdata$w, strata = ccdata$strata) EO(fit) EO(fit, ccdata$strata) # BY FACTOR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.