Hi everyone,
I was wondering how I could go about debugging the error message that I have received during my analysis. I have tried reading through the forum postings and also through the stata manual but I am having a mental block. What is the meaning of the error "missing standard error because of stratum with single sampling unit" and how do I solve the issue? This is my first foray in survey analysis, so I greatly appreciate the community's patience and guidance in this.
I have copied and pasted two examples of my codes and the accompanying error messages below.
The database that I am using is the National Readmissions Database. The variables used for the survey analysis are the following: hosp_nrd (the hospital at which the patient is admitted and discharged from), discwt (the weighting variable), nrd_stratum (stratification variable).
For this code, I am trying to look at the percentages of post-op complications in IBD patients who are obese versus those who are not obese. I run into an error where the stratum only has a single sampling unit.
My question is how to continue doing analyses on variables where the stratum only has a single sampling unit?
Thank you in advance for everyone's time!
I was wondering how I could go about debugging the error message that I have received during my analysis. I have tried reading through the forum postings and also through the stata manual but I am having a mental block. What is the meaning of the error "missing standard error because of stratum with single sampling unit" and how do I solve the issue? This is my first foray in survey analysis, so I greatly appreciate the community's patience and guidance in this.
I have copied and pasted two examples of my codes and the accompanying error messages below.
The database that I am using is the National Readmissions Database. The variables used for the survey analysis are the following: hosp_nrd (the hospital at which the patient is admitted and discharged from), discwt (the weighting variable), nrd_stratum (stratification variable).
Code:
svyset hosp_nrd [pw=discwt], strata(nrd_stratum)
Code:
. svy: mean totchg_readmit if thirty_days_readmit==1
(running mean on estimation sample)
Survey: Mean estimation
Number of strata = 81 Number of obs = 2,096
Number of PSUs = 781 Population size = 4,852.0524
Design df = 700
----------------------------------------------------------------
| Linearized
| Mean Std. Err. [95% Conf. Interval]
---------------+------------------------------------------------
totchg_readmit | 43062.96 . . .
----------------------------------------------------------------
Note: Missing standard error because of stratum with single
sampling unit.
Code:
. svy if surg_ibd==1 & elective==0: tab post_op_comp obese, col percent se
(running tabulate on estimation sample)
Number of strata = 85 Number of obs = 6,219
Number of PSUs = 1,137 Population size = 14,526.108
Design df = 1,052
-------------------------------
post_op_c | obese
omp | 0 1 Total
----------+--------------------
0 | 93.26 93.22 93.26
1 | .4224 .6748 .4395
2 | .5327 .8139 .5517
3 | .0465 .5594 .0813
4 | .1935 0 .1804
5 | 4.499 3.375 4.423
6 | .4165 .2355 .4042
7 | .4065 .5594 .4169
8 | .2247 .5594 .2474
|
Total | 100 100 100
-------------------------------
Key: column percentage
Pearson:
Uncorrected chi2(8) = 18.1021
Design-based F(., .) = . P = .
Note: Missing test statistics because of stratum with single sampling unit.
Note: Missing standard errors because of stratum with single sampling unit.
Thank you in advance for everyone's time!

Comment