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
Bootstrapping with lots of dummies! Help!Reviewer asked me to bootstrap standard errors, but I have 116 firm dummies plus 15 time dummies in …
Using OLS for binary dependent variable and observations perfectly predicting outcomesHi Statalist, I am running OLS for binary dependent variable after facing so many difficulties achi…
Create a table from value labelsHi, i am trying to save the value labels of a variable to write them into a file together with thei…
R-square ChallengesI am currently studying the impact of BRI on economic growth of countries using Difference In Differ…
Help with asdoc - regression tablesDisclaimer: asdoc is a user written command by Dr. Ataullah Shah I am regressing with a categorical…
Subscribe to:
Post Comments (Atom)
0 Response to Graph of mean/ci over time by categorical variable
Post a Comment