![]() It is called a prefix because it is added right before a Stata command. Instead of running and reporting all these regressions separately, we can make use of the nested regression prefix called nestregbefore our regression command. Say, we want to add more controls to our model through the ‘length’ and ‘trunk’ variables – we run another regression with these added. Now, if we want to run another regression with a new covariate, ‘weight’, we would typically run another separate regression. sysuse auto.dtaįirst let’s run a simple regression of ‘price’ on ‘mpg’. How can we display nested/heirarchical regression tables in Stata?įor this example, will use Stata’s built-in auto dataset. We say that models (1) and (2) are ‘nested’ within model (3). Model (3) further added ‘length’ and ‘trunk’ as covariates. Model (1) saw ‘price’ being regressed on ‘mpg’. Each subsequent column adds a new variable that was added as a covariate in the regression. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |