MENU

Fun & Interesting

Stata commands and options for performing subgroup analyses (Sept 2021)

Mike Crowson 17,657 4 years ago
Video Not Working? Fix It Now

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: https://drive.google.com/file/d/1ikjJnRjr1a4jO5Zx5Cvo0BEoedTjuT-7/view Supplemental text file containing commands shown in the video: https://drive.google.com/file/d/1FoRqvUamM56vHyjv_swZdvxfdFCJZ4TH/view

Comment