Greetings, All:
Hope all is well. I am looking for some guidance/syntax that will model the extent to which within (time variant) and between (time-invariant) variance associated with an independent variable (bmtx below) impact the outcome. The syntax currently be used is
bys ID_NEW: egen bmtxbtw = mean(bmtx)
gen bmtxwin = bmtx - bmtxbtw
After reshaping 3 waves of data (long) and using the xtsum command, I understand that I should find “0” for the within-person standard deviation for the between-person effect, and “0” for the between-person standard deviation for the within-person effect. However, the output suggest I may be doing something wrong – or, perhaps there is little/no within variance (see below for output).

Thank you in advance for you time and assistance.
Hope all is well. I am looking for some guidance/syntax that will model the extent to which within (time variant) and between (time-invariant) variance associated with an independent variable (bmtx below) impact the outcome. The syntax currently be used is
bys ID_NEW: egen bmtxbtw = mean(bmtx)
gen bmtxwin = bmtx - bmtxbtw
After reshaping 3 waves of data (long) and using the xtsum command, I understand that I should find “0” for the within-person standard deviation for the between-person effect, and “0” for the between-person standard deviation for the within-person effect. However, the output suggest I may be doing something wrong – or, perhaps there is little/no within variance (see below for output).
Thank you in advance for you time and assistance.

Comment