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
xtreg: Panels are not nested within clustersHi, Stata forum, I am running firm level regression using one country panel data. For firm: xtset …
HELP with Stata GraphicsDear Statalisty, I am really struggling with generating graphs in Stata. For the dataset below (whi…
Competing risk modelling and predicting modellingDear colleagues, I got some questions about my statistical analysis on the project measuring about m…
mcaplot - resize markers by weight/massHi everyone! I have several mcaplots with 20+ variables, and I would like them to be represented by…
Problem with Merger commandHi everyone! I Have a problem with the command merge because I need to merge two-panel datasets that…
Subscribe to:
Post Comments (Atom)
0 Response to Using summarize after svy: mean with direct standardisation
Post a Comment