Announcement

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

  • Options for -proportion- command

    The following commands a point estimate and confidence interval for the proportion of US women who were unionized in 1988.
    Code:
    sysuse nlsw88, clear
    proportion union
    By default the command gives a logit confidence interval. To get a normal confidence interval, I type
    Code:
    proportion union, normal
    but this returns an error
    option normal not allowed
    I get similar errors from any of the following variants:
    Code:
    proportion union, logit
    proportion union, wald
    What am I not understanding about the command? Thanks!

  • #2
    not sure if this is a version problem, but the option in the current version of Stata is actually "citype()" where you put wald, etc., inside the parens; here is an example:
    Code:
    . sysuse auto
    (1978 automobile data)
    r; t=0.03 9:03:20
    
    . proportion foreign, citype(wald)
    
    Proportion estimation                       Number of obs = 74
    
    --------------------------------------------------------------
                 |                                   Normal
                 | Proportion   Std. err.     [95% conf. interval]
    -------------+------------------------------------------------
         foreign |
       Domestic  |   .7027027   .0531331      .5968085    .8085969
        Foreign  |   .2972973   .0531331      .1914031    .4031915
    --------------------------------------------------------------

    Comment

    Working...
    X