Hi all, i'm new here and will try to include as much detail as possible if there is anything important omitted then let me know and I shall edit. Thanks for any help in advance.
I have a longitudinal panel dataset obtained via surveys (questionnaires, interviews etc.). The data were obtained from children at ages 3 years, 5 years, and 7 years, and while the children remained the same throughout some dropped out and so the number of observations decreased as age increased. There were for example 15000 respondents at age 3, 14000 at age 5 and so on.
There are three dependent variables, those being the children's emotional dysregulation score at age 3, 5 and 7. These are scores ranging from 1 to 3, though the child could have scored 1.1 etc. (not all integers). The independent variable is language ability with two levels measured binary (0 = child has language delay, 1 = child has capable language). There is not an equal quantity of observations for each group (there are 14000 for language delayed, and 1000 for capable language). My codes to transform data to long form and to create a time variable are as follows;
gen id_num = _n
order id_num, a(MCSID)
reshape long emotdysreg, i(MCSID) j(time)
gen age = 0 if time == 1
replace age = 2 if time == 2
replace age = 4 if time == 3
gen age2 = age*age
xtset id_num time
I would like to compare the changes in emotional dysregulation over the three ages between groups of the IV, i.e. does language delay cause a change in emotional state over time and is this change larger than the change observed in children with capable language.
I have a longitudinal panel dataset obtained via surveys (questionnaires, interviews etc.). The data were obtained from children at ages 3 years, 5 years, and 7 years, and while the children remained the same throughout some dropped out and so the number of observations decreased as age increased. There were for example 15000 respondents at age 3, 14000 at age 5 and so on.
There are three dependent variables, those being the children's emotional dysregulation score at age 3, 5 and 7. These are scores ranging from 1 to 3, though the child could have scored 1.1 etc. (not all integers). The independent variable is language ability with two levels measured binary (0 = child has language delay, 1 = child has capable language). There is not an equal quantity of observations for each group (there are 14000 for language delayed, and 1000 for capable language). My codes to transform data to long form and to create a time variable are as follows;
gen id_num = _n
order id_num, a(MCSID)
reshape long emotdysreg, i(MCSID) j(time)
gen age = 0 if time == 1
replace age = 2 if time == 2
replace age = 4 if time == 3
gen age2 = age*age
xtset id_num time
I would like to compare the changes in emotional dysregulation over the three ages between groups of the IV, i.e. does language delay cause a change in emotional state over time and is this change larger than the change observed in children with capable language.
Comment