Initially, I wrote the following code:
Code:
keep if var == 1 reg y x
But, my classmate answered the question with a differently. Rather than dropping observations where var!=1, he wrote
Code:
reg y x if var == 1
Why do we get different results?
Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.
keep if var == 1 reg y x
reg y x if var == 1
0 Response to Regression Results with "If" Statement
Post a Comment