Statistics: Posted by RohithLodh — 22 Mar 2024, 13:42
num = sum([1 for i in range(len(interventions)) if any(NMBs[i] >= wtp)])
Statistics: Posted by Admin — 01 Mar 2024, 20:37
Statistics: Posted by lifevisonskincare — 01 Mar 2024, 12:19
# Plot the cost-effectiveness acceptability curve (CEAC) CEAC = [] for wtp in WTP: num = sum([1 for i in range(len(interventions)) if NMBs[i] >= wtp]) prob = num / len(interventions) CEAC.append(prob) ---------------------------------------------------------------------------ValueError Traceback (most recent call last)~\AppData\Local\Temp\ipykernel_28316\1184681348.py in <module> 2 CEAC = [] 3 for wtp in WTP:----> 4 num = sum([1 for i in range(len(interventions)) if NMBs[i] >= wtp]) 5 prob = num / len(interventions) 6 CEAC.append(prob)~\AppData\Local\Temp\ipykernel_28316\1184681348.py in <listcomp>(.0) 2 CEAC = [] 3 for wtp in WTP:----> 4 num = sum([1 for i in range(len(interventions)) if NMBs[i] >= wtp]) 5 prob = num / len(interventions) 6 CEAC.append(prob) ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Statistics: Posted by lgforerog — 27 Feb 2024, 23:15
Statistics: Posted by Eleanoramber — 21 Feb 2024, 21:57
Statistics: Posted by medresq — 18 Feb 2024, 11:34