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
Convergence error in calculating of productivity by SFA - "Kumbhakar, S.C, 2015"Dear everyone, I am calculating total factor productivity by SFA model in using STATA. When I run …
Marginsplot axis value labelsI'm using marginsplot to graph a repeated measures anova, with the timepoints labeled t0-t9. This me…
Drop panel if condition of at least one observation of panel is trueHi together, i use stata 16.0 and have a panel data set including banks (unique identifier is the v…
How to construct the distribution of propensity scores calculated from the pre-match conditional logistic regression?Dear Statalists, Hope my message finds you well. I am trying to construct an estimated propensity …
Panel data: How to drop only a specific combination of observations?Hi. I am using large n panel data with four annual waves, from which I want to exclude/drop data. I…
Subscribe to:
Post Comments (Atom)
0 Response to Graph of mean/ci over time by categorical variable
Post a Comment