Dear Stata Community,
I am new to using the xt commands for panel data and would greatly appreciate your guidance. I'm working with a dataset in long format, containing four survey points. My goal is to analyze the associations between my categorical outcome variable and several categorical explanatory variables. I also have another numerical outcome variable with a corresponding categorical explanatory variable.
In cross-sectional data, I would typically use Pearson's chi-square test for categorical associations or ANOVA for numerical outcomes. However, I'm unsure about the equivalent methods for panel data when using xt commands in Stata 18, especially for conducting crude association tests without adjusting for confounders. I want to assess the crude association to determine which variables are potential confounders, so I can proceed with multilevel and longitudinal modelling. I will use random effects in my analysis.
Most of the resources I've found discuss xtreg and xtlogit for adjusted analyses, but I'm looking for the appropriate methods or commands to perform these basic association tests in a panel data context. Could anyone advise on the best approach or relevant commands for this?
Thank you in advance for your help.
I am new to using the xt commands for panel data and would greatly appreciate your guidance. I'm working with a dataset in long format, containing four survey points. My goal is to analyze the associations between my categorical outcome variable and several categorical explanatory variables. I also have another numerical outcome variable with a corresponding categorical explanatory variable.
In cross-sectional data, I would typically use Pearson's chi-square test for categorical associations or ANOVA for numerical outcomes. However, I'm unsure about the equivalent methods for panel data when using xt commands in Stata 18, especially for conducting crude association tests without adjusting for confounders. I want to assess the crude association to determine which variables are potential confounders, so I can proceed with multilevel and longitudinal modelling. I will use random effects in my analysis.
Most of the resources I've found discuss xtreg and xtlogit for adjusted analyses, but I'm looking for the appropriate methods or commands to perform these basic association tests in a panel data context. Could anyone advise on the best approach or relevant commands for this?
Thank you in advance for your help.
Comment