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
Categorical variable postestimation at cluster levelI have a question about categorical variable regression and post-estimation procedures, not limited …
Replacing 1s (with missing values in between) with a consecutive sequence (from 1 to the row total)Hi! I was wondering if you could help me with the following question: I have the following (abbrevi…
where can i find "pprob" and "nbprob"?I'm using Stata 11 and have been able to find the nbvargr script, but it requires that nbprob and pp…
Bysort with generation of variableI am trying to calculate the daily mean of a variable contingent on various conditions. For example,…
Understanding Margins with a Fractional Proportion DVHi All, I have a proportion DV. I can't use the Code: fracreg command because of my unit of analy…
Subscribe to:
Post Comments (Atom)
0 Response to profileplot - change line colours based on a third variable
Post a Comment