Announcement

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

  • Errors with -cii- in .do file (Stata 15 for Mac, with version control to Stata 14)

    Hi all,

    Not sure if this is a bug, but running an older .do file with:

    HTML Code:
    version 14
    set trace on
    cii prop 555 55
    set trace off[/CODE]
    
    
    [PHP]. cii prop 555 55
      ------------------------------------------------------------------------------------------------------ begin cii ---
      - version 14
      - local vv : di "version " string(_caller()) ", missing:"
      - if _caller() < 14.1 {
      - cii_14_0 `0'
      = cii_14_0 prop 555 55
        ----------------------------------------------------------------------------------------------- begin cii_14_0 ---
        - version 3.1
        - local vv : di "version " string(_caller()) ", missing:"
        - local options "Level(cilevel)"
        - parse "`*'", parse(" ,")
        = parse "prop 555 55", parse(" ,")
        - local 1=`1'
        = local 1=prop
    prop not found
        ------------------------------------------------------------------------------------------------- end cii_14_0 ---
        return add
        exit
        }
      -------------------------------------------------------------------------------------------------------- end cii ---
    r(111);
    
    end of do-file
    This runs cleanly in Stata 15.
    __________________________________________________ __
    Assistant Professor, Department of Biostatistics and Epidemiology
    School of Public Health and Health Sciences
    University of Massachusetts- Amherst

  • #2
    I'm getting the same thing on my setup:

    Code:
    . cii prop 555 55
    
                                                             -- Binomial Exact --
        Variable |        Obs  Proportion    Std. Err.       [95% Conf. Interval]
    -------------+---------------------------------------------------------------
                 |        555    .0990991    .0126831        .0755297    .1270349
    
    . version 14: cii prop 555 55
    prop not found
    r(111);
    
    . version 14: cii proportion 555 55
    proportion not found
    r(111);
    
    . about
    
    Stata/MP 15.0 for Windows (64-bit x86-64)
    Revision 29 Jun 2017
    Copyright 1985-2017 StataCorp LLC
    
    Total physical memory:     8269900 KB
    Available physical memory: 4037608 KB
    
    Single-user 2-core Stata perpetual license:
           Serial number:  REDACTED
             Licensed to:  Clyde Schechter
                           Albert Einstein College of Medicine
    
    . update query
    (contacting http://www.stata.com)
    
    Update status
        Last check for updates:  09 Jul 2017
        New update available:    none         (as of 09 Jul 2017)
        Current update level:    29 Jun 2017  (what's new)
    
    Possible actions
    
        Do nothing; all files are up to date.
    This also verifies that the version: prefix induces the same behavior. And, since I haven't uninstalled version 14, I verified that -cii prop 555 55- runs without error in native version 14.

    Comment


    • #3
      [...] I verified that -cii prop 555 55- runs without error in native version 14.
      Do you mean 14.0 or are you referring to an updated version? The documentation (whatsnew) suggests that the syntax with subcommands was added as a feature to the Stata 14.1 update.

      Best
      Daniel

      Comment


      • #4
        Daniel is right. Under version control, you are obliged (with version 14) to use the old syntax and cii prop is illegal under that syntax.

        Why set the version at all?

        Comment


        • #5
          I was re-running an old .do file (14.x), with a new section added.
          __________________________________________________ __
          Assistant Professor, Department of Biostatistics and Epidemiology
          School of Public Health and Health Sciences
          University of Massachusetts- Amherst

          Comment

          Working...
          X