I'm starting to get a little confused about how R knows which variable is the main variable and which others are simply controls. For example, let's say there are three variables Y, X1, and X2, and I'm mainly interested in X1. I regress Y = constant + X1 + X2 + error. The function of X2 is to block any indirect effect that can confound the true relationship between Y and X1. However, the coefficients and standard errors are probably going to be the exact same if we run Y = constant + X2 + X1 + error. So does that mean the coefficient that Stata calculates for X1 and X2 are already taking into account that both could influence each other regardless of what the main variable is?
Related Posts with How does Stata know which variable is the main variable?
Applying different colors to data points in scatter plotHi! I am trying to create a graph like the one below where I can apply different colors to data poin…
Significant OLS results but insignificant IV results and the insignificant endogeneity testDear all, I want to explore the effects of X on Y. Considering X might be an exogenous variable, I …
Reshape wide to long: many variables of many yearsHi All, I have a dataset with more than 10 variables of more than 10 years in wide shape. I'm tryin…
Sargan-Hansen testHi. I am trying to obtain results for the Sargan-Hansen test. However, when I run a regression usin…
Transforming a series to be standard normal in panel dataHi all, May I have a basic question: how can I make/transform a series/variable to be standard norm…
Subscribe to:
Post Comments (Atom)
0 Response to How does Stata know which variable is the main variable?
Post a Comment