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
Replacing missing values in groupsHi everyone, I am working with a dataset with fiscal years, CIK codes and employee ids. For the fis…
how to incorporate both fixed effects and robust std errors into panel analysisI am doing an event study where i use a panel analysis (different observations on a same day) with d…
standard errors when calculating marginal effects of logisitc regressionHello, I have calculated the marginal effects of my logistic regression with robust standard errors…
Gini decomposition by income sourceHi all, I would like to decompose the Gini coefficient by income source, applying the Lerman-Yitzhak…
Exporting marginal effects and its confidence intervalsHello, I am estimating average marginal effects using `margins` after `probit` and `ivprobit`. I ne…
Subscribe to:
Post Comments (Atom)
0 Response to Replicating Excel Intercept/Slope
Post a Comment