I wish to simulate a set of categorical variables which correlates with a simulated numerical variable. More specifically, I have variable the age which is defined like: age <- rnorm(n=1000, mean=35, sd =9) and I wish to simulate another variables class in which higher age makes for higher class. Can anyone point me in the right direction? Thanks in advance!