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?
Selecting multiple variables (with * or ?)Dear all, Can I please ask you a question about selecting multiple variables by the use of the aste…
Unable to reshape multiply imputed dataHello, I am unable to reshape my data into long format to run a fixed effects model. As can be seen…
strange behaviour in logit with clustering of standard errors.In performing a logistic regression with 'logit', I am encountering very significant association's (…
Generating a new numeric variable that gives the proportion of a value count and the total count of anotherHello Statalist, I'm working with an integer variable "ind" (for industry) and a 0-1 binary float v…
How to obtain CIs for standardized direct/indirect effects when using SEM builderHi all, When using the SEM builder there is an option to have indirect/direct effects reported for …
Subscribe to:
Post Comments (Atom)
0 Response to How does Stata know which variable is the main variable?
Post a Comment