EO {blm} | R Documentation |

## Compute the ratio of expected event to observed events for `blm`

and `lexpit`

objects.

### Description

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.

### Usage

```
EO(object, index = NULL, level = 0.95)
```

### Arguments

`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 |

### Value

Data frame with:

`E`

expected count

`O`

observed counts

`EtoO`

ratio of expected to observed

`lowerCI`

lower endpoint of confidence interval for E over O ratio

`upperCI`

upper endpoint of confidence interval for E over O ratio

### Author(s)

Stephanie Kovalchik s.a.kovalchik@gmail.com

### Examples

```
data(ccdata)
fit <- blm(y~female+packyear,data = ccdata,
weight = ccdata$w, strata = ccdata$strata)
EO(fit)
EO(fit, ccdata$strata) # BY FACTOR
```

[Package

*blm*version 2022.0.0.1 Index]