Hello,
So I am trying to perform a statistical test that aims to analyze how much of a factor one's race is related to X. However, in this study, I want to account for the fact that the population of each racial group in the study area is very different.
I'll just make up an example here to demonstrate my goal:
So without accounting for the variation in population sizes, I would just be asking if there is a significant relationship between race and income?
However, accounting for population, I would be asking if there is a significant relationship between race and income, considering that some racial groups have a lot of people and the others don't within the study area.
So this would be taking a conclusion that race 1 makes way more money than race 2. However, it is acknowledging that fact that the population of race 1 is way smaller than the population of race 2 in the study area. While I could simply perform an ANOVA (I think this would be the right test) to determine if there is a relationship between income and race, I think that it is important to incorporate the variation in populations.
Is this what would be considered as "weighting"? I am honestly pretty confused as to how to go about this. I am trying to enter the model into R, so it would be really helpful to see some examples in R code format!
I hope I explained this well, as this is hard for me to put into words.
Thank you very much!