Hi all,
I have run a simulation model calculating an outcome Y in 100000 iterations. I'd like to plot the proportion of iterations (y axis) where Y is less than a particular threshold as a function of values of that threshold (x axis). More specifically, Y is a cost and X is a willingness to pay (WTP) threshold. I'd like to plot the proportion of iterations where a stakeholder would deem the cost "affordable" as a function of increasing WTP thresholds. I can't get the plot quite right. I've tried
qqplot iteration Y
but it gives me the raw iteration number on the y axis instead of the proportion (or percent). I tried scaling the iteration number by dividing by 1000, but that flattens the displayed curve and makes it unreadable. Also, I don't need the reference line because I'm not using the graph for diagnostics.
Any suggestions on a better way to go about this, perhaps by manipulating the data and using a standard twoway graph?
Thanks in advance,
Doug
I have run a simulation model calculating an outcome Y in 100000 iterations. I'd like to plot the proportion of iterations (y axis) where Y is less than a particular threshold as a function of values of that threshold (x axis). More specifically, Y is a cost and X is a willingness to pay (WTP) threshold. I'd like to plot the proportion of iterations where a stakeholder would deem the cost "affordable" as a function of increasing WTP thresholds. I can't get the plot quite right. I've tried
qqplot iteration Y
but it gives me the raw iteration number on the y axis instead of the proportion (or percent). I tried scaling the iteration number by dividing by 1000, but that flattens the displayed curve and makes it unreadable. Also, I don't need the reference line because I'm not using the graph for diagnostics.
Any suggestions on a better way to go about this, perhaps by manipulating the data and using a standard twoway graph?
Thanks in advance,
Doug
Comment