Hello,
I am running the descriptive statistics for continuous variable that contains number of visits visits, using direct standardisation. My combined age and sex group is age_sex and my combined weight is combined_weight. Below is the outcome for svy: mean using a dummy sample data:
. svyset PLACE_ID
pweight: <none>
VCE: linearized
Single unit: missing
Strata 1: <one>
SU 1: PLACE_ID
FPC 1: <zero>
. svy: mean visits, stdize(age_sex) stdweight(combined_weight)
(running mean on estimation sample)
Survey: Mean estimation
Number of strata = 1 Number of obs = 3,000
Number of PSUs = 314 Population size = 3,000
N. of std strata = 10 Design df = 313
----------------------------------------------------------------
| Linearized
| Mean Std. Err. [95% Conf. Interval]
---------------+------------------------------------------------
visits | 7.5769 .5228137 6.548226 8.605573
----------------------------------------------------------------
Then I am trying to obtain the median and ICQ using summarize:
. summarize visits [aw =combined_weight], det
visits
-------------------------------------------------------------
Percentiles Smallest
1% 1 1
5% 2 1
10% 3 1 Obs 3,000
25% 3 1 Sum of Wgt. 174.823256
50% 6 Mean 6.955672
Largest Std. Dev. 4.729997
75% 9 27
90% 12 36 Variance 22.37287
95% 16 36 Skewness 1.630652
99% 24 42 Kurtosis 7.396223
But I get a different mean in the summarize table. Does it really matter or I am doing something wrong?
I would really appreciate any help with this. My dummy sample is attached in Excel.
Thanking you in advance.
Related Posts with Using summarize after svy: mean with direct standardisation
Heterogenous Treatment EffectsHello, I have a question regarding heterogenous treatment effects. First I have estimated the propen…
Is there a way to get overall effects for a KHB decomposition when I have a categorical key variable?Dear all, I am currently running a KHB mediation analysis with a continuous DV (cognitive developmen…
Creating a study site map in stataHello Statalisters, I would like to find out if it is possible to generate a country map showing a …
Update to heatplot available from SSCA bugfix for heatplot is now available from the SSC Archive. Binning of x and y was erroneous at the…
Assign a dummy 0/1 to each county based on a scoreHello everyone, I have a dataset with US counties where for each county in each quarter I have the t…
Subscribe to:
Post Comments (Atom)
0 Response to Using summarize after svy: mean with direct standardisation
Post a Comment