Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question to assumption in code: #5

Closed
florianjehn opened this issue Oct 11, 2022 · 1 comment
Closed

Question to assumption in code: #5

florianjehn opened this issue Oct 11, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@florianjehn
Copy link
Collaborator

  • Why "dairy_beef_mother_ratio = dairy_cows / beef_cows"? Are all beef cows male?
@florianjehn florianjehn added the question Further information is requested label Oct 11, 2022
@k-r-a-s-s
Copy link
Collaborator

No, not all beef cows are male.

yeah there is a bit going on here to simplify the stats: , with some elaboration here:

The source data just lists: calves, heifers, steers etc. It doesn't list whether they are destined for beef or dairy production. I've used the ratio of beef to dairy mothers to estimate which will be in each track.

Dairy breed cows which are male will end up in the beef track, hence:
cattle_in_beef_track = (
dairy_calf_boys + beef_calves + beef_steers + beef_cows + beef_heifers
)
cattle_in_dairy_track = dairy_calf_girls + dairy_cows + dairy_heifers

Note: steers = castrated male, and dairy_steers doesn't exist as male cows can't make milk

All this said, I think you have highlighted an error! I think it should be a percentage not a ratio
dairy_mother_percent = dairy_cows / (beef_cows+dairy_cows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants