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?
Interpretation of terms in discontinuous growth model – mixed commandHello everyone, I am estimating a discontinuous growth curve model for a study about the impact of …
Difference-in-difference with three time periodsDear all, I am working on my bachelor essay and I have to use stata for a regression. My topic is t…
How to find upward variable bias?Dear Statalisters, I am currently running some analysis on a few different dependent variables in a…
label defineHey guys, I tried this command label define currmarr 0 "no currently legally married" 1 "currently …
declare survey design for datasetHello, I have a question regarding how to correctly declare survey design for a dataset I am analyz…
Subscribe to:
Post Comments (Atom)
0 Response to How does Stata know which variable is the main variable?
Post a Comment