I have a single twelve-term equation for different classes of disease prevalence (nx
) that looks like this:
y = f*b0*n0 + f*b1*n1 + f*b2*n2 + ... + f*b12*n12
I also have an equality constraint, such that
n0 + n1 + n2 + ... + n12 = 1 ## prevalence must add up to one
The unknowns are nx (where x=[1,12] ). I would prefer to solve this analytically, but can also make do with a numerical solution. I would be grateful for any pointers on R packages or approaches (or is this unsolvable?). The project is in support of the current humanitarian response in Iraq - so hopefully a worthwhile cause.