I have four variables, y1-y4 that I would like to regress on four fixed x's, x1-x4. (I have taken the logs of both the x's and y's). For each observation/row, I wanted to fit a line and capture the intercept and slope. In excel, it would be Intercept(y1-y4,x1-x4) and the same for Slope. I would then copy the command for each row. I cannot figure out how to do this in Stata. Any help is greatly appreciated. Thank you.
Related Posts with Replicating Excel Intercept/Slope
atmeans vs vce(unconditional)Analyzing a publicly available svy dataset. Need to know the differences/when to use margins with at…
Creating a boxplot that connects across timeHello, I am not sure if what I am looking to do is at all possible so I am going to post my idea bu…
Cmp and predicts data perfectly errorHi all , in my model the dependent variable is an Ordered variable and there is a regressor ( which …
Opposite signs of average marginal effects after probitHello everyone A probit regression generated the following output Probit regression Number of obs…
What is wrong with the code foreach here?I have the code foreach, I do not know while it work in one case and does not work in another case. …
Subscribe to:
Post Comments (Atom)
0 Response to Replicating Excel Intercept/Slope
Post a Comment