Dear STATA List users,
I have a statistical test question that I have been trying to tackle.
I have two main comparable groups: those with and without a PEG insertion. Within each of these groups, I have matched sub-disease groups including Advanced, Moderate, Early and Unknown.
I am trying to compare whether weight has changed over time in these participants, between PEG and no-PEG, within each disease subgroup. e.g., is weight different between time point 1 and time point 2 between PEG versus no-PEG, in "advanced" subgroup.
The variables I am currently working with includes Weight1, Weight2, PEG group, and sub-disease group where weight is a continuous variable and the groups are categorical.
I have been wondering how to do this, and have realised that the data is longitudinal. To use the weight data in a multiple linear regression (taking into account age and gender as covariates), would I use the difference between the two weight data variables?
Therefore the code would look like:
My main question is about whether looking at the difference in weight as a comparable measure is the correct approach?
I look forward to your responses.
Kind regards,
Annabelle
I have a statistical test question that I have been trying to tackle.
I have two main comparable groups: those with and without a PEG insertion. Within each of these groups, I have matched sub-disease groups including Advanced, Moderate, Early and Unknown.
I am trying to compare whether weight has changed over time in these participants, between PEG and no-PEG, within each disease subgroup. e.g., is weight different between time point 1 and time point 2 between PEG versus no-PEG, in "advanced" subgroup.
The variables I am currently working with includes Weight1, Weight2, PEG group, and sub-disease group where weight is a continuous variable and the groups are categorical.
I have been wondering how to do this, and have realised that the data is longitudinal. To use the weight data in a multiple linear regression (taking into account age and gender as covariates), would I use the difference between the two weight data variables?
Therefore the code would look like:
Code:
regress weightdifference i.PEG_group Age gender
I look forward to your responses.
Kind regards,
Annabelle
Comment