Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: SE/CI for difference in transition matrix row proportions after -svy tabulate- twoway

From   "Scholes, Shaun" <>
To   "" <>
Subject   st: RE: SE/CI for difference in transition matrix row proportions after -svy tabulate- twoway
Date   Tue, 3 Apr 2012 17:32:11 +0000

I'm having an early evening junior moment (and about to log off) but could you not:

svy: mean bu_SA, over(Lbu_SA)

and use lincom to estimate the difference, and obtain SE/CIs for the difference using that? 

Best wishes

-----Original Message-----
From: [] On Behalf Of
Sent: 03 April 2012 18:13
Subject: st: SE/CI for difference in transition matrix row proportions after -svy tabulate- twoway

I'm having an early evening senior moment, and can't figure out how to calculate, from saved results after -svy tabulate-, the difference between two elements of a 2x2 transition matrix and the associated SE/CI. I've been browsing svy help and documentation, and can't find the answer directly. Part of my problem is not understanding precisely what is stored in the saved variance-covariance matrix.

Below is example output from a simplified example. I have a binary measure of receipt at t-1 and at t, and cross-tabulate them. The two transition proportions of interest are the entry rate, P(0,1), which is estimated to be 0.0335 in the example, and the stayer rate, P(1,1), which is estimated to be 0.6553 in the example. I want not only the the difference P(1,1) - P(0,1), but also a SE/CI for the difference, which I was assuming I could calculate from the saved results. Suggestions please.

. svy: tabulate Lbu_SA bu_SA, row se
(running tabulate on estimation sample)

Number of strata   =         1                  Number of obs      =
Number of PSUs     =      9036                  Population size    =
                                                Design df          =

1:R's BU  |
receives  |
B|JSA,    |1:R's BU receives IS|UBIS|UB|JSA
t-1       |         0          1      Total
        0 |     .9665      .0335          1
          | (8.2e-04)  (8.2e-04)           
        1 |     .3447      .6553          1
          |   (.0095)    (.0095)           
    Total |     .9255      .0745          1
          |   (.0023)    (.0023)           
  Key:  row proportions
        (linearized standard errors of row proportions)

    Uncorrected   chi2(1)         =  2.62e+04
    Design-based  F(1, 9035)      =  1.47e+04     P = 0.0000

. mat list e(b)

          p11        p12        p21        p22
y1  .96649524  .03350476  .34470377  .65529623

. mat list e(V_row)

symmetric e(V_row)[2,2]
               r1:         r2:
               r1          r1
r1:r1   4.394e-06
r2:r1  -4.394e-06   4.394e-06

. mat list e(V)

symmetric e(V)[4,4]
            p11         p12         p21         p22
p11   6.751e-07
p12  -6.751e-07   6.751e-07
p21   1.477e-07  -1.477e-07   .00008959
p22  -1.477e-07   1.477e-07  -.00008959   .00008959

Professor Stephen P. Jenkins <> Department of Social Policy and STICERD London School of Economics and Political Science Houghton Street, London WC2A 2AE, UK
Tel: +44(0)20 7955 6527
Changing Fortunes: Income Mobility and Poverty Dynamics in Britain, OUP 2011,
Survival Analysis Using Stata:
Downloadable papers and software:

Please access the attached hyperlink for an important electronic communications disclaimer:

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index