# exposure_table

From IBMPopSim v0.3.0
by Daphnc3 Giorgi

##### Creates an exposure table.

Returns the Central Exposure-to-Risk for given ages groups and time period. The central Exposure-to-risk is computed as the sum of the time spent by individuals in a given age group over a given period, where age is the age at last birthday.

##### Usage

`exposure_table(population, ages, period)`

##### Arguments

- population
Population data frame containing at least

`'birth'`

and`'death'`

columns.- ages
A vector of size

`N`

composed of age groups. The function computes the number of death in each age group`[ages[i],ages[i+1])`

, for`i=1..N-1`

.- period
A vector of size

`M`

composed of time intervals.

##### Details

The function computes the central exposure-to-risk in each time interval `[t[j],t[j+1])`

, `j=1..M`

, and age groups.

##### Value

An exposure matrix

##### Examples

```
# NOT RUN {
ex_table <- exposure_table(EW_pop_out,0:101,0:2)
# }
```

*Documentation reproduced from package IBMPopSim, version 0.3.0, License: MIT + file LICENSE*

### Community examples

Looks like there are no examples yet.