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
conditionally check if 2 column clusters have no missing valuesHi, I have a dataset below that has 6 columns . I would like to check if [ not missing in any of th…
Creating categorical variableHello, I have a panel data set with a variable that measures how many children women have. I would …
Normalizing GraphsHello All, I am attempting to normalize my graph to match the unconditional average for the corresp…
merging datasetshi guys, would anyone please be able to explain to me how to combine two datasets, one of which is a…
how to destring a variable containing some observations in a range?I have a variable wage. The wage variable has some observations in range, such as 400-500, 1200-1300…
Subscribe to:
Post Comments (Atom)
0 Response to Graph of mean/ci over time by categorical variable
Post a Comment