Hi,
I have data where two continuous variables are cognitive scores measured on the same individuals two years apart: 'cog1' and 'cog2'. I am interested in the difference between these cognitive scores as a continuous outcome measure. As mean cog2 score were lower, I created a change variable by using the syntax: gen cog_change = cog1-cog2. I've since been looking online and thinking I should have set my data as panel data (xtset). However, none of my other variables are longitudinal, they are all cross-sectional.
Could anyone provide advice on what is the correct syntax to use?
Thank you.
I have data where two continuous variables are cognitive scores measured on the same individuals two years apart: 'cog1' and 'cog2'. I am interested in the difference between these cognitive scores as a continuous outcome measure. As mean cog2 score were lower, I created a change variable by using the syntax: gen cog_change = cog1-cog2. I've since been looking online and thinking I should have set my data as panel data (xtset). However, none of my other variables are longitudinal, they are all cross-sectional.
Could anyone provide advice on what is the correct syntax to use?
Thank you.
Comment