Hi guys,
I have 9 variables that I'd like to plot with tsline. The data is monthly and I am not able to plot the combined graphs with only the years on the X-axis.
I'd like to have a scale as something like this: 1950 -- 1980 -- 2000 -- 2020, instead of the current cramped full dates: https://imgur.com/a/n4FrBFZ
Any suggestions?
Kind regards,
Tim
My do-file:
cd "X:\My Downloads\thesis"
clear
import excel "X:\My Downloads\thesis\final data", sheet("Monthly") firstrow
gen t=_n
tsset t
tsset DATE_m
tsline SENT_m, name(SENT_m)
tsline CPI_m, name(CPI_m)
tsline DEF_m, name(DEF_m)
tsline TED_m, name(TED_m)
tsline IND_m, name(IND_m)
tsline EP_m, name(EP_m)
tsline DP_m, name(DP_m)
tsline DE_m, name(DE_m)
tsline DY_m, name(DY_m)
tsline SMB_m, name(SMB_m)
tsline HML_m, name(HML_m)
tsline STR_m, name(STR_m)
tsline MKT_m, name(MKT_m)
tsline MSCI_m, name(MSCI_m)
tsline UNEM_m, name(UNEM_m)
graph combine SENT_m DEF_m DP_m DE_m DY_m EP_m HML_m IND_m CPI_m, col(3) row(3)
Related Posts with Combine graph plot years
 Remove part of a Text in observationHi guys, Below is a sample of my data. I would like to remove the "-TOT RETURN IND" in all the obser… Remove part of a Text in observationHi guys, Below is a sample of my data. I would like to remove the "-TOT RETURN IND" in all the obser…
 Creating categorical summary values for cities annually, weighted/unweightedHi guys.
New to running Stata for large groups. I'm working with IPUMs American Community Survey Da… Creating categorical summary values for cities annually, weighted/unweightedHi guys.
New to running Stata for large groups. I'm working with IPUMs American Community Survey Da…
 xtivreg2 export first and second stage resultsAs the description of xtivreg2 says, it is the wrapper of ivreg2. But the "savefirst“ option of ivre… xtivreg2 export first and second stage resultsAs the description of xtivreg2 says, it is the wrapper of ivreg2. But the "savefirst“ option of ivre…
 Merge mulitple .csv filesI am using Stata 16.1 MP to merge six .csv files on neonatal, infant, and child mortality. I would l… Merge mulitple .csv filesI am using Stata 16.1 MP to merge six .csv files on neonatal, infant, and child mortality. I would l…
 Number of timepoints for person fixed effectsIs there some sort of arbitrary number of timepoints needed in order to estimate person fixed effect… Number of timepoints for person fixed effectsIs there some sort of arbitrary number of timepoints needed in order to estimate person fixed effect…
Subscribe to:
Post Comments (Atom)
0 Response to Combine graph plot years
Post a Comment