Hi
My data is panel data, with 3 different waves. Additionally, it has been split into 3 different samples: those who lived in "formal urban" areas in Wave 1 and Wave 3, those who lived in "informal urban" areas in Waves 1 and 3, and those who lived in "rural" areas in Wave 1 and 3. It is complex survey data.
If I execute
I get the change in labour market outcomes between waves for the "formal urban" sample ("Table 1"):
The estimates in the cells 2:1 and 2:2 (blue) have overlapping confidence intervals, and therefore at first glance I cannot tell whether the difference between the estimates is statistically significant at the 95% level. So I execute
which gives me the output
And I therefore know that the estimates can be said to be different at the 95% level. This is all fine.
My question now is about how to compare estimates from the "formal urban" sample to another sample, such as the "informal urban" sample. As soon as I run another -svy, tab- command, the stored estimates for "Table 1" are replaced. So I need a way to save the estimates, and then bring them back for comparison. The commands I thought would work for this are -estimates store name- and -suest-.
However when I tried the following
I get
Probably related to this, when I run -estimates replay FORMAL- I get
Can I not use -estimates store- after -svy, tab-? Or am I doing something wrong? And if I cannot use -estimates store-, is there another way around my problem?
Thanks very much for any help - and any questions or points of clarity are very welcome.
NOTE: this is a cross-post from http://www.statalist.org/forums/foru...ex-survey-data, as that thread took a very long-winded route before getting to this point, and is very long and messy to follow. Most importantly, I think the question has changed somewhat from what I asked in that topic. However if you want some more background on this question, that thread may be informative.
My data is panel data, with 3 different waves. Additionally, it has been split into 3 different samples: those who lived in "formal urban" areas in Wave 1 and Wave 3, those who lived in "informal urban" areas in Waves 1 and 3, and those who lived in "rural" areas in Wave 1 and 3. It is complex survey data.
If I execute
Code:
svy, subpop(panel_empl_formal): tab w1_empl_stat w3_empl_stat, row ci percent
Code:
---------------------------------------------------------------------- w1 crude | employmen | w3 crude employment status t status | 0, NEA 1, Unemp 2, Emplo Total ----------+----------------------------------------------------------- 0, NEA | 53.97 18.59 27.43 100 | [49.04,58.83] [15.43,22.24] [23.69,31.53] | 1, Unemp | 24.53 33.88 41.59 100 | [20.27,29.36] [28.82,39.34] [36.04,47.35] | 2, Emplo | 14.16 9.345 76.49 100 | [11.68,17.07] [7.422,11.7] [72.95,79.7] | Total | 26.7 16.5 56.8 100 | [24.29,29.26] [14.21,19.08] [53.33,60.2] ---------------------------------------------------------------------- Key: row percentage [95% confidence interval for row percentage]
Code:
test _b[p21] = _b[p22]
Code:
Adjusted Wald test ( 1) p21 - p22 = 0 F( 1, 314) = 5.22 Prob > F = 0.0230
My question now is about how to compare estimates from the "formal urban" sample to another sample, such as the "informal urban" sample. As soon as I run another -svy, tab- command, the stored estimates for "Table 1" are replaced. So I need a way to save the estimates, and then bring them back for comparison. The commands I thought would work for this are -estimates store name- and -suest-.
However when I tried the following
Code:
svy, subpop(panel_empl_for): tab w1_empl_stat_crude w3_empl_stat_crude, row ci percent estimates store FORMAL svy, subpop(panel_empl_rur): tab w1_empl_stat_crude w3_empl_stat_crude, row ci percent estimates store INFORMAL suest FORMAL INFORMAL
Code:
impossible to retrieve e(b) and e(V) in FORMAL r(198);
Code:
-------------------------------------------------------------------------------------------------------- Model FORMAL -------------------------------------------------------------------------------------------------------- varlist required r(100);
Can I not use -estimates store- after -svy, tab-? Or am I doing something wrong? And if I cannot use -estimates store-, is there another way around my problem?
Thanks very much for any help - and any questions or points of clarity are very welcome.
NOTE: this is a cross-post from http://www.statalist.org/forums/foru...ex-survey-data, as that thread took a very long-winded route before getting to this point, and is very long and messy to follow. Most importantly, I think the question has changed somewhat from what I asked in that topic. However if you want some more background on this question, that thread may be informative.
Comment