Announcement

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

  • issue with power two*

    hi folks,
    i seem to be having an issue with the power twomeans / power twoproportions commands since updating to Stat15
    its pretty straightforward and ive used this a bunch before with out issue but now when i enter a command such as:
    power twoproportions .85 .65, test(chi2) n1(25) n2(25)
    i get the error message 'twoproportions' found where number expected

    i tried going through the dropdown menu, and got the same thing...
    any idea whats going on?
    thanks

  • #2
    Works for me:

    Code:
    . about
    
    Stata/SE 15.1 for Windows (64-bit x86-64)
    Revision 08 Mar 2018
    Copyright 1985-2017 StataCorp LLC
    
    <you don't need to know what I've deleted> 
    
    . power twoproportions .85 .65, test(chi2) n1(25) n2(25)
    
    Estimated power for a two-sample proportions test
    Pearson's chi-squared test 
    Ho: p2 = p1  versus  Ha: p2 != p1
    
    Study parameters:
    
            alpha =    0.0500
                N =        50
               N1 =        25
               N2 =        25
            delta =   -0.2000  (difference)
               p1 =    0.8500
               p2 =    0.6500
    
    Estimated power:
    
            power =    0.3685

    Comment


    • #3
      Perhaps you have created or installed a power command that is overriding the built-in command. The following might help you track down the problem; the output is what I see running Stata 15.1 for Mac.
      Code:
      . which power
      /Applications/Stata/ado/base/p/power.ado
      *! version 1.1.4  09aug2017
      
      . program list power
      
      power:
        1.         version 13
        2.         local version : di "version " string(_caller()) ":"
        3.         tempname rhold
        4.         _return hold `rhold'
        5.         cap noi `version' power_rsafe `0'
        6.         if (_rc) {
        7.                 _return restore `rhold'
        8.                 exit _rc
        9.         }
       10.         sreturn clear
      
      power._chk4twosampleopts:
        1.         args twosample colon rhs
        2.         local 0 , `rhs'
      [remaining output omitted]

      Comment

      Working...
      X