The input vectors doses and age must have the same number of values, this function does no argument checking.

cross_tab_doses_age(doses, age, num_doses, num_ages)

Arguments

doses

a IntegerVariable

age

a IntegerVariable

num_doses

number of doses

num_ages

number of age groups

Examples

if (FALSE) {
a <- IntegerVariable$new(0:4)
b <- IntegerVariable$new(c(1,2,3,1,2))
cross_tab_doses_age(a$.variable,b$.variable,4,3)
table(a$get_values(), b$get_values())
}