Hi all,
I am aiming to simulate stepped-wedged data for a cross-sectional design (new set of individuals are sampled from each cluster at each step or cross-over point) according to the following model with a continuous outcome:
Yijk = b0 + bj + dXijk + ui + eijk
Let Yijk denote the continuous outcome with clusters i = 1,…,I containing individual j = 1,...J. Define Xijk as the intervention indicator wherein Xijk = 1 if cluster k is receiving the intervention and Xijk = 0 if cluster k is in the control condition. b0 is defined as the fixed effect intercept, bj fixed effect for time as a covariate, and dfixed intervention effect. Cluster-level random intercepts were assumed to follow a normal distribution with a mean of zero and known variance ui ~ N (0, sd). Finally, residuals are normally distributed as well eijk ∼ N(0, sd).
How would I sample a new set of individuals from each cluster at each timepoint?
Any help is much appreciated.
Jack.
Related Posts with Sampling in a cross-sectional stepped-wedge
How to generate the column before a columnSorry if this has been asked before I have dataset containing var1 and var2. I want to generate a ne…
Repeatedly obtain values after a certain condition holds and ignore observations inbetweenHi all! I would really appreciate your help with the following: I have obtained buy signals from st…
Forloop: too many variables specified r(103) errorHello, I've been around for a year on this community, but this is my first post. I am running a for…
NA's in sureg()Hi, How are NAs in the dependent variable column dealt for in sureg()? I want to estimate a system …
r(198) invalid varnameHello , I do not know why stata tell me "r(198)invalid varname. " I check it for several times. I ho…
Subscribe to:
Post Comments (Atom)
0 Response to Sampling in a cross-sectional stepped-wedge
Post a Comment