Easy multi-panel plotting with grcomb Alex Gamma Swiss Stata User - - PowerPoint PPT Presentation

easy multi panel plotting with grcomb
SMART_READER_LITE
LIVE PREVIEW

Easy multi-panel plotting with grcomb Alex Gamma Swiss Stata User - - PowerPoint PPT Presentation

Easy multi-panel plotting with grcomb Alex Gamma Swiss Stata User Group meeting Bern, Switzerland 17.11.2016 Content The problem Enter grcomb grcomb in action grcomb syntax Limits & improvements The problem


slide-1
SLIDE 1

Easy multi-panel plotting with grcomb

Alex Gamma Swiss Stata User Group meeting Bern, Switzerland 17.11.2016

slide-2
SLIDE 2
  • The problem
  • Enter grcomb
  • grcomb in action
  • grcomb syntax
  • Limits & improvements

Content

slide-3
SLIDE 3

The problem

  • Quegging (Quick Exploratory Graphing)
  • Stata’s graph combine too complicated
  • need to produce single graphs first
  • combine using graph combine
  • does not support wildcards in graph names
slide-4
SLIDE 4

. hist SCL_01, percent name(scl01) . hist SCL_02, percent name(scl02) . graph combine scl0* . scl0* is not a memory graph r(198);

The problem

slide-5
SLIDE 5

. ssc install grcomb

  • requires ≥ Stata 10

Enter grcomb

slide-6
SLIDE 6

. grcomb hist SCL_0*, percent v(1)

grcomb in action

5 10 15 Percent 10 20 30 40 SCL_01 5 10 15 20 Percent 10 20 30 40 SCL_02

slide-7
SLIDE 7

. grcomb sc SCL_01 age SCL_02 age, v(2) o(abab)

grcomb in action

10 20 30 40 SCL_01 20 40 60 80 alter 10 20 30 40 SCL_02 20 40 60 80 alter

slide-8
SLIDE 8

. grcomb sc SCL_01 SCL_02 age age, v(2) o(aabb)

grcomb in action

10 20 30 40 SCL_01 20 40 60 80 alter 10 20 30 40 SCL_02 20 40 60 80 alter

slide-9
SLIDE 9

. grcomb sc SCL_0* age*2, v(2) o(aabb)

grcomb in action

10 20 30 40 SCL_01 20 40 60 80 alter 10 20 30 40 SCL_02 20 40 60 80 alter

slide-10
SLIDE 10

. grcomb lgraph SCL_0* agecat*2 uni*2, v(3)

  • (aabb) err(iqr) eop(lc(*.5)) nom sep(.01)

ylab(0(5)30) xti(Age group)

grcomb in action

5 10 15 20 25 30 Mean SCL 01 20 30 40 50 Age group

No university University

5 10 15 20 25 30 Mean SCL 02 20 30 40 50 Age group

No university University

slide-11
SLIDE 11

. grcomb graph command var1[*#] var2[*#]

var3[*#] var4[*#] [...] [if] [in] , varblock(#) [order(abab|aabb) name(name[, replace]) draw feedback graph options]

grcomb syntax

Feedback on progress Draw single graphs grcomb automatically names your graph uniquely

slide-12
SLIDE 12

Limits & improvements

  • Combined length of variable names

cannot exceed 244

  • o

( abab)is default; should be o ( aabb)

  • No options of graph combine
  • No other luxury
  • The first two will be addressed in a

future update on SSC

  • The second two are features
slide-13
SLIDE 13

Thanks!

alex.gamma@uzh.ch