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
Generating unique id across variablesHello I have data in the following format where each firm is audited by either 1 or two auditors. …
Import excel dataset to Stata with MM/DD/YYYY dates as 1st row / variableHi, I currently have a dataset that looks like that in Excel: Code: Code: * Example generated …
Merging datasets for specific observations in a variableHi, I'm trying to merge two datasets (Disease_reshaped and DevelopmentStage) for only specific obse…
Identify variables by their order in the datasetHi, I am working with a new feed of data every week (in real time). Therefore, as real time passes …
if condition "name global variable == " then enter the subroutineHi, I am trying to come up with an "if condition" that would allow me to enter parts of the code if…
Subscribe to:
Post Comments (Atom)
0 Response to Replicating Excel Intercept/Slope
Post a Comment