I have continuous data "A", binary categorical data "O", gender/sex and age for several participants in a study.
A linear model in R shows no correlation between A and age. I would now like to group A into groups by age and see if there is a difference between the groups. I know about 'hist' and 'split' in R, but these do not do what I need.
(1) How can I divide/split A into groups based on age (18 to 27, 28 to 37, etc.).
(2) Once I've done that, I would use a $\chi^2$ test?
(3) Could I also test O in the same groups, using counts?