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
Macros for 2 graphs. Invalid name errorHello, I have to draw I have to draw a variety of similar graphs and decided to use macros at first…
Remove observations when there are more than 2 rows with the same IDHi, I have a data set that uniquely defines a household via 2 variables: conglome vivienda Within …
Difficulties with loop in a loop, feeding a matrix values through a loopHello, I am looking to fill a 4 by 5 matrix with the descriptive statistics (e.g. number of obs, max…
Random Marginal Agreement CoefficientHi everyone. I am comparing intra rater agreement between two continous variables, both predicted co…
Merge DifficultiesHello, I'm having difficulty merging together two data sets that contain population estimates for m…
Subscribe to:
Post Comments (Atom)
0 Response to profileplot - change line colours based on a third variable
Post a Comment