I want to show the change of a numerical score in 68 indivials at two time points, before and after a treatment.
I' struggling with the user written command profileplot. It generates a plot with different colors per observation.
profileplot var1 var2 , by(id) msymbol(i) xlabel(1 "Before" 2 "After")
But, I want three colors only: Green for those who decrease, red for those who increase and blue for those with no change. I still want each individual observation presented as a line (i.e. not a mean per group). I've generated a variable for this purpose ("Change") which tells which group the individual belongs to (1,2 or 3)
Does anyone know if this is possible, or, if I should use another command?
Related Posts with profileplot - change line colours based on a third variable
spmap - adding a square to the mapDear Statalist How can I draw a square around a specific section on the map without using the graph …
Xttest2 in a non panel data regression?I tried to perform a xttest2, and this was the output: Error: too few common observations across pa…
Tabulating country fixed effects predicted in StataHello to everyone again, For my thesis, I aim on deriving country fixed effects. A suggested by a f…
margins & marginsplot after mixed effect/multilevel modellingHi All I've used linear spline multilevel modelling to analyses rate in change of multimorbidity in…
Plotting results after running mixed effects modelHi All I've run the follwoing mixed effects model with linear splines to look at change in multimor…
Subscribe to:
Post Comments (Atom)
0 Response to profileplot - change line colours based on a third variable
Post a Comment