Stata commands and options for performing subgroup analyses (Sept 2021)
Вставка
- Опубліковано 14 жов 2024
- This presentation shows you various options for carrying out subgroup analyses using Stata. I use 2 general examples: (a) generating descriptive statistics for a single variable (mastery goals) (b) performing a linear regression (where achievement is regressed onto mastery goals and performance goals). I demonstrate how to generate subgroup output using the 'if' command and also by using 'bysort'. Later in the video I demonstrate how to create subgroups from a numeric variable (using the 'generate' and 'replace' commands) and then using it in conjunction with 'bysort'.
A copy of the data can be downloaded here: drive.google.c...
Supplemental text file containing commands shown in the video:
drive.google.c...
how to get interaction p-value for subgroup analysis
Very useful, thanks a lot
Very useful, Thank you! Will you please talk about something related to risk prediction model in Stata in the future lecture?
👍👍👍