Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with naming correlation tables generated via the corrtable (SSC)

    Colleagues,

    For purely presentational purposes I would like to produce sets of correlation tables using corrtable (SSC). Unfortuntaly, it appears that it's not possible to define the name for the corrtable. Without the graph name, one table is being overwritten by the subsequent one. Is there a way to bypass this problem? I think of it, I should be able to rename the most recent graph, but ideally, I would like to define name within the corrtable syntax.


    Code:
    /* === Corrtable example === */
    
    // Data
    sysuse census, clear
    
    // Problem
    
    /// First one
    corrtable poplt5 pop5_17 pop18p pop65p popurban, ///
        half pval flag1(r(rho) > 0.5) howflag1(plotregion(color(blue * 0.1))) ///
        name(measures, replace)
        
    /// Second one
    corrtable divorce marriage death medage popurban pop65p, ///
            half pval flag1(r(rho) > 0.5) howflag1(plotregion(color(blue * 0.1))) ///
            name(other, replace)
    Error
    Code:
    option name() not allowed
    Kind regards,
    Konrad
    Version: Stata/IC 13.1

  • #2
    Sounds familiar. You have to put name() in the combine() option.

    Code:
     
    sysuse auto 
    corrtable mpg price weight, combine(name(g1))
    Put it anywhere else and you are tacitly asking that the same name be assigned to the different component graphs, which won't work.

    Comment


    • #3
      Thank you very much for the useful reply.
      Kind regards,
      Konrad
      Version: Stata/IC 13.1

      Comment

      Working...
      X