If I want to compare characteristics of 2 groups of patients, one group is recruited from a random sample of the general public while another group is from a sample with a fixed gender (male to female 1:1) and age group ratio (equal number of subjects in 6 different age groups) from the public. Is it still possible to look into the effect of age and sex in such comparison? if I want to examine effect of other behavioral factors, what statistical test can be used to minimize effect of biases arising from two different sampling methods? Thanks!