Extracts one statistic from a mortality_tabulation() result as a matrix
with one covariate down the rows and another across the columns. The margins
("All") are included as the last row and column.
Arguments
- tab
Output of
mortality_tabulation()with margins.- rows, cols
Names of the covariates for the rows and columns.
- value
The column to tabulate:
"rate"(default),"deaths","pyears","n","oe", and so on.- fixed
Optional named list pinning any further covariates to one level (they default to
"All"), for examplelist(sex = "F")to tabulate within women whentabhas three covariates.