I have data similar to the sp500 dataset that comes with Stata. Using the sp500 dataset as an example, I'd like to make a graph of the opening price over time, and label the x-axis "Date." I can't figure out how to do this! See code below.
sysuse sp500, clear
keep if date < date("1/15/2001", "MDY")
graph bar open, over(date) ytitle("Opening Price")
Any advice you can provide would be so helpful.
Best,
Erika
sysuse sp500, clear
keep if date < date("1/15/2001", "MDY")
graph bar open, over(date) ytitle("Opening Price")
Any advice you can provide would be so helpful.
Best,
Erika
Comment