MAUS-team / tape_calculator

1 stars 2 forks source link

Change in Formula (caet_culture, soil_health) #2

Closed joealpuerto closed 4 months ago

joealpuerto commented 5 months ago

Hi Simon,

Just small change in the formula:

  1. On function caet_culture:
    mutate(cultf_sum = sum(c(diet, food_self_suff, food_heritage, seeds_breeds),na.rm = TRUE), cultf_score = round((cultf_sum/12)*100,6))

Instead of dividing by 12, the sum should be divided by 16.

  1. On soil health: instead of (soil_health - 1) 25), it should be (soil_health/4)100
joealpuerto commented 5 months ago

On youth employment and emigration (there was an inaccuracy in the formula in the Stata code, thus in the adapted R too): o mutate(youth_employ = (y_good_perc + 0.5y_med_perc)/1.5) %>% #the divided by 1.5 should be taken out o mutate(youth_emigr = (g1_perc + 0.5g3_perc + 0.5*g4_perc)/2) %>% #the divided by 2 should be taken out

joealpuerto commented 5 months ago