Announcement

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

  • Collect title and Collect notes not recognized

    Dear statalist,

    I would like to bring to your attention a simple problem related to the commands "collect title" and "collect notes". Apparently, although several examples are reported in the manual "STATA CUSTOMIZABLE TABLES
    AND COLLECTED RESULTS, REFERENCE MANUAL, RELEASE 17", these commands are not recognized by Stata 17. The following code is taken directly from the manual:

    Code:
    clear all
    use https://www.stata-press.com/data/r17/nhanes2l
    replace agegrp = . if race==3 & agegrp==6
    quietly: collect _r_b: regress bpsystol agegrp#race
    collect style cell result[_r_b], nformat(%5.2f)
    collect layout (colname) (result)
    collect style showempty off
    collect notes "The reference category is white individuals in the 20--29 age group."
    
    clear all
    use https://www.stata-press.com/data/r17/nhanes2l
    quietly: collect _r_b: regress bpsystol i.agegrp
    quietly: collect _r_b: regress bpsystol i.agegrp i.sex
    collect title "Models for systolic blood pressure"
    Are you able to replicate the issue?

    Many thanks in advance!

  • #2
    no, it works for me fine - tell us something about your version of Stata (click on "about Stata") in the menu under the name of the program at the top left of your screen)

    Comment


    • #3
      I cannot replicate your problem -- this code works fine for me.

      You likely have an outdated version of Stata 17. Update it using the command -update all-, restart the program, and try again.

      Comment


      • #4
        Dear Rich and Ali,

        Thanks for your answers. After updating Stata, it works fine for me as well.

        Comment

        Working...
        X