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
Matching/merging Job seekers to job posts if they meet requirementsHello Everyone, Hope you all are well. I am looking to merge two datasets however, I want to match …
How could I handle the longitudinal (time-series) data? I provided an example below for an easy explanation for my question. I need to do survival anal…
Changing variable labels for multiple variables at the same timeHello, I'd like to change label variables. My data contains 100 variables with label started number…
command esttab is unrecognized but estout already installedHello! I have a problem using -esttab-. Here is the code I try to run: Code: logout, save(H1) word…
convert 'n' rows of a variable to 'n' columnsHi, I would appreciate if I could get help with creating new variables from rows of an existing var…
Subscribe to:
Post Comments (Atom)
0 Response to Replicating Excel Intercept/Slope
Post a Comment