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
Using SMCL in Stata GraphsIs there comprehensive documentation of which SMCL tags do and do not work as intended when producin…
Generating Count of Recurring names in Successive Time PeriodsHi Statalist, I had a small question that I was hoping to get help with. I refer to the table below …
Same datapoint across different date formatsI am looping over different date variables in a graph, that will be my x-axis. The four variables ar…
stata doesn't recognises the values of variablesDear all, I just was working on excel files (census data) with the following code: Code: clear* …
Fixed or random effects with unbalanced panel data?Dear community, I have an unbalanced panel dataset of 165 countries from 1991-2019, in which my dep…
Subscribe to:
Post Comments (Atom)
0 Response to Graph of mean/ci over time by categorical variable
Post a Comment