Hello everyone, I am new on STATA, if anyone can help me, I would be very grateful.
I'm working with a health survey database. I need to determine the difference between the means of the variable "imc" (body mass index) of two different periods, year 2003 survey versus 2009 survey.
My database contains the variables age, sex, imc (body mass index), ano_encuesta (Survey date, 2003 or 2009), and IMC_dec(1 - 10). This last variable was generated to determine to which decile of the distribution belongs the value of the varible "bmi".
The variable "fexp" contains the weights corresponding to each observation.
The code I am using is as follows
. svyset _n [pweight=fexp], vce(bootstrap) bsrweight(imc fexp)
pweight: fexp
VCE: bootstrap
MSE: off
bsrweight: imc fexp
Single unit: missing
Strata 1: <one>
SU 1: <observations>
FPC 1: <zero>
.
.
.
. . keep if IMCdec==10
(7,895 observations deleted)
.
.
.
. . svy: mean imc, subpop(if edad>=15 & edad<45) over(ano_encuesta)
(running mean on estimation sample)
Bootstrap replications (2)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xx
insufficient observations to compute bootstrap standard errors
no results will be saved
r(2000);
.
.
.
. . estat size, obs size
last estimates not found
r(301);
.
.
.
. . lincom [imc]2009 - [imc]2003
last estimates not found
r(301);
------------O----------------
In this particular analysis I keep just 1,017 observtions. Is this number not enough to perform a boostrap analysis of the standard error? I would be very glad if someone can say me what can I do with my code.
Meaby if I increase the number of replications of the bootstrap could work, but I don´t know how to do it.
Raúl Gallegos. From Chile.
Comment