I have a data frame named orf. I am trying to work out coding on how to calculate the values for dependent variable in binary independent variable e.g Breed. The table gives me the number of breeds in each category. How do I go about coding to calculate for instance the 341 breed type 1 had 500 cases of disease. My y here is Cases
table(orf$Breed)
1 2
341 405
Example:
Breed Cases2012
2 0
1 0
2 8
2 73
2 0
2 26
2 0
2 45
1 0
2 22
1 0
1 0
2 0
2 6
1 539