Hi all,
I have data from a survey on prices individuals are willing to pay for a product. In particular, each participant had to provide a price for each of the variables OE, DC_Price and P_Basic.
Array
I need to plot the aggregate demand curves for the three variables on the same graph (Just like the image below). Here the x-axis is Price and the Y-axis is Quantity (normalised).
The curves should show the aggregate demand based on aggregating individuals' responses to the OE, DC_Price and P_Basic questions.
Here quantity should be the aggregate demand that is normalized to a range between 0 and 1 due to differing sample sizes.
Array
My idea is to create a histogram overlaying all three variables and somehow turning this into a connected line graph? However, I doubt this takes into account aggregating the individuals responses and based on what I have read in this forum one cannot create a line graph from a histogram?
Below is a screenshot of the histogram for just the OE variable.
histogram OE, bin(20) frequency xtitle(Price) xlabel(#20, labels ticks)
Array
Is there perhaps an easier way to plotting these demand curves? Or any other suggestion on how to go about this?
Any recommendations or guidance would be greatly appreciated.
Thanks,
Carmen
Related Posts with Plotting Graph
Building time windows from years, starting from most recent yearDear all, I have some panel data containing countries and years. I need to build three-year time wi…
Using only end of month values for a daily dataset?Hey I have a dataset in this format: Date(daily) var1 var2 var3 var4 var5 I only want to work wit…
Do I need to check for heteroscedasticity in mediation analysis?Hi everyone, I am conducting a mediation analysis using the ml_mediation command on Stata which by …
Assigning preferred IDs to to District Names of a large Panel DatasetHello, I have year-wise data files which have household level data on wide-ranging variables. The pr…
Variable assigning number to dates within periodsHi. I have a dataset where I have registered observations on specific dates within a different peri…
Subscribe to:
Post Comments (Atom)
0 Response to Plotting Graph
Post a Comment