Conditional Means (Discrete) (Data Analysis)
Using the eth_allrounds_final data, look at mean outcomes by group for a discrete variable.
-
Compute mean harvest quantity (
harvest_kg) by plot ownership (plot_owned) usingtabstat. Which group has the higher mean yield? -
Make a
graph barof the mean harvest value (harvest_value_USD) by crop tpye (main_crop). Which crop has the highest average value and what is that value?