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
Summing the values of a variable WITHOUT taking into the frequencyHello all, Following on from https://www.statalist.org/forums/for...ir-frequencies, I did the follo…
BacktestingHi everyone, I am trying to run a backtesting model for the data I have. I am not an expert with st…
Need guidance with covariate-adjusted discrete-time survival analysis (Cox model)Hello, I am trying to run covariate-adjusted discrete-time survival analysis, specifically using th…
Transition MatrixHello, I am trying to generate a transition matrix of the change in the employment status of individ…
Calculate conditional holding period returnHi everyone, I want to calculate the holding period return for the buy strategies (buy50 ==1) and s…
Subscribe to:
Post Comments (Atom)
0 Response to Sampling in a cross-sectional stepped-wedge
Post a Comment