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
Help with countsHello, I am working on a prescribing data set containing details of about 100,000 people. The lay o…
bayesgraphs diagnostics in Item Response ModelPlease, how do we use bayesgraphs diagnostics command in Item Response Model? Thanks for your antici…
Textbox position in bar graphsI am trying to change the position of subtitles in bar graphs. I've created a MWE from Stata's datas…
coefplot graph, symmetry between dotsDear Statalisters, I am using the coefplot command to create one graph with coefficients from 40 di…
How drop some elements from a macro list of filesHi Statalist I have a question. I have the following datasets: 2008_a8.txt, 2010_a4.txt, 2012_a7.t…
Subscribe to:
Post Comments (Atom)
0 Response to Sampling in a cross-sectional stepped-wedge
Post a Comment