Hi everyone,
I started learning STATA recently after learning some object-oriented programming languages first, so the syntax has been confusing me.
Basically, I have a file with multiple variables that I am trying to perform a regression on. The goal is to run a regression for each state (which is a variable, and states show up multiple times), using certain variables. My desired results show on the command window just as I want them, and I got them by doing so:
bysort state: reg y x1
bysort state: reg y x2
etc.
However, I am having trouble exporting these files and saving them when I use the command esttab. I get a table without the states, and virtually no results. Also, the idea is to perform regressions individually, without the use of multiple independent variables at a time (I need to make separate files for the variables that i am performing regressions on).
It's my first time posting on here, so my apologies if I made a mistake!
Related Posts with How to export file after regression?
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 …
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…
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 …
Merging datasets for specific observations in a variableHi, I'm trying to merge two datasets (Disease_reshaped and DevelopmentStage) for only specific obse…
Generating unique id across variablesHello I have data in the following format where each firm is audited by either 1 or two auditors. …
Subscribe to:
Post Comments (Atom)
0 Response to How to export file after regression?
Post a Comment