Hi StataList,
I am using twoway to create ICC graphs for item analysis of many variables. However, my data includes three conditions (groups). I would like to have the ICC for all three groups display on a single graph (per item). My primary goal is to use these graphs to quickly identify which items are best discriminators of differences between the TX group and the other 2 control groups.
Is it possible to do this with twoway or should I try a different approach?
Thanks very much in advance.
~~~~~~~~~~~~~~~~~~~~~~~
I am using the foreach loop below with twoway to produce three individual ICC graphs (1 per group) per item, but I can't figure out how to produce them (all 3 group) in a single graph.
~~~Stata 14, WIndows~~~~~
foreach var of varlist VAR1 VAR87 VAR9z7 VARaok VARz8 {
local GraphTitle : variable label `var'
logistic `var' StdTotal
predict p
twoway (line p StdTotal, sort lcolor(blue) by(StudyGrp) lwidth(thick) lpattern(solid) connect(direct)), ///
title("Q: `GraphTitle'", size(medsmall) color(black)) ///
ytitle("") yscale(range(1 0)) ylabel(0(0.2)1) ymtick(0(0.2)1) ///
xtitle("") xscale(range(-3 3)) xlabel(-3(1)3) xmtick(-3(1)3) ///
scheme(s1color) ///
name(`var', replace)
drop p
}
~~~~~~~~~~~~~~~~
I am using twoway to create ICC graphs for item analysis of many variables. However, my data includes three conditions (groups). I would like to have the ICC for all three groups display on a single graph (per item). My primary goal is to use these graphs to quickly identify which items are best discriminators of differences between the TX group and the other 2 control groups.
Is it possible to do this with twoway or should I try a different approach?
Thanks very much in advance.
~~~~~~~~~~~~~~~~~~~~~~~
I am using the foreach loop below with twoway to produce three individual ICC graphs (1 per group) per item, but I can't figure out how to produce them (all 3 group) in a single graph.
~~~Stata 14, WIndows~~~~~
foreach var of varlist VAR1 VAR87 VAR9z7 VARaok VARz8 {
local GraphTitle : variable label `var'
logistic `var' StdTotal
predict p
twoway (line p StdTotal, sort lcolor(blue) by(StudyGrp) lwidth(thick) lpattern(solid) connect(direct)), ///
title("Q: `GraphTitle'", size(medsmall) color(black)) ///
ytitle("") yscale(range(1 0)) ylabel(0(0.2)1) ymtick(0(0.2)1) ///
xtitle("") xscale(range(-3 3)) xlabel(-3(1)3) xmtick(-3(1)3) ///
scheme(s1color) ///
name(`var', replace)
drop p
}
~~~~~~~~~~~~~~~~
Comment