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
Staggered diff in diff with continuous treatmentMy data involves treatment exposures in multiple groups and multiple time periods and I used stagger…
To make Trajectory Plot directly using WIDE data format without reshaping to long formatDear all, Is there any easy command or way to make a trajectory plot using WIDE format without resh…
Loop over file namesHi, I have been trying to loop over some file names. I have something like this: foreach s of num …
fisher's exact test does not reproduce the results in the literatureHello, I am trying to reproduce the results in the literature using fisher's exact test to compare …
5-class latent class model and memory problems r(3900)Dear Statalister, i am running the following 5-class latent class model on a dataset of about 19.00…
Subscribe to:
Post Comments (Atom)
0 Response to Graph of mean/ci over time by categorical variable
Post a Comment