I have two multinomial variables (e.g. age group and color).
ageGroup <- c(35,40,45,50)
color <- c("Red", "Blue", "Yellow")
I want to be able to draw these two variables for 100 observations with equal probability.
n = 100
age <- sample(ageGroup, 100, replace = T)
color <- sample(color, 100, replace = T)
If we assume that some observed frequency table shows that ages 35 and 40 cannot also be 'red', how do I sample where these two age groups would have equal probability of drawing 'blue' and 'yellow' (and not 'red')?
Should I split the sampling in age groups or is there a more sophisticated statistical approach?
Thanks!