I have a KPI with a formula to calculate, what I do is actually calculate the value of the KPI for the whole population (2245 individuals or input), the formula is:
v1+v2+v3 / a1+a2+a3
Where vi and ai are the sum of all the values of the variable for every input, i.e for example v1 represents the sum of all the 2245 values of v1.
After that I want to know how does the KPI change if I remove one input from the population, so what I do is calculate vi and ai without that input, and then calculate the KPI again. (I do it for all inputs)
I do this with excel for the moment and it is quite manual, I want to know if there's a function in R or Python that would allow me to do that.
Any help would be appreciated, thank you.