Hi, I am relatively new to stata but have looked for help ciplot and help xtgraph plus hours online and cannot find a solution.
I have 1 continuous variable (mean csi) measured hourly over 24h.
I would like to plot mean csi over time but by two categorical variables (red_mov - binary).
I have tried ciplot over time but that does not allow me two categories.
I have tried xtgraph but a thrid (?) variable appears and the CI bars don't appear and modifying the graph options such as msymbol or bar(ci) does not cause any change on the output.
I am trying to achieve something like this:Array
But when I type the code: . xtgraph csi, group(red_mov) msymbol(D) av(am) offset(3) level(95%) bar(ci)
What get is this:
Array
Please can you help?
Related Posts with Graph of mean/ci over time by categorical variable
explaining regression coefficients economic significanceHello I performed xtreg y x x , fe regression to test the relationship between profit and cash hold…
Impulse response function after SVAR with exogenous variableHi, I'm trying to run the SVAR model with exogenous variables. A Y(t) = α+βy Y(t-1) + (d(t) +s(t))…
Graph bar by two groups in one chart (not combined)Hello Statalist, I would like to put two graphs in one chart. (1) bar graph (mean) of output by nat…
Merging datasetsHi Users, I just got access to a dataset (M) which I need to merge with another data based on id an…
Working with dates and loopIs it possible to get a loop that works with every string variable which are in date format (CCYY-NN…
Subscribe to:
Post Comments (Atom)
0 Response to Graph of mean/ci over time by categorical variable
Post a Comment