Hi Stata Users
I have been working on a event study which involved the following two phases:
1) Calculating the AR and CAR for a number of event windows
2) Regressing my CAR on a number of variables
I have appended the CAR to a file using the following:
My question is how to I export the results of my regressions from (1) to an excel / word file where I am left with only the AR / CAR, t-statistics and the significance levels.
I would like to have the same for part (2) where I am left with the beta, t-statistics and the significance levels. I have the used the following code to get my results to excel:
My problem is that it gives me the following error:
I have not been able to find a way to get all results on excel since.
Would really appreciate if someone could help me. Its the final stage of my work...exporting the file, building my tables and explain the results.
Thank you guys in advance for your help!
I have been working on a event study which involved the following two phases:
1) Calculating the AR and CAR for a number of event windows
2) Regressing my CAR on a number of variables
I have appended the CAR to a file using the following:
Code:
keep in 1/1 append using 6day_car save 6day_car, replace restore
I would like to have the same for part (2) where I am left with the beta, t-statistics and the significance levels. I have the used the following code to get my results to excel:
Code:
forvalues i = 1/1324 { preserve keep if obs == `i' eststo: quietly regress car `var' esttab using regresults.csv, replace restore }
matsize too small
You have attempted to create a matrix with too
many rows or columns or attempted to fit a model
with too many variables. You need to increase
matsize; it is currently 400. Use set matsize;
see help matsize.
If you are using factor variables and included an
interaction that has lots of missing cells, either
increase matsize or set emptycells drop to reduce
the required matrix size; see help set emptycells.
If you are using factor variables, you might have
accidentally treated a continuous variable as a
categorical, resulting in lots of categories. Use
the c. operator on such variables.
You have attempted to create a matrix with too
many rows or columns or attempted to fit a model
with too many variables. You need to increase
matsize; it is currently 400. Use set matsize;
see help matsize.
If you are using factor variables and included an
interaction that has lots of missing cells, either
increase matsize or set emptycells drop to reduce
the required matrix size; see help set emptycells.
If you are using factor variables, you might have
accidentally treated a continuous variable as a
categorical, resulting in lots of categories. Use
the c. operator on such variables.
Would really appreciate if someone could help me. Its the final stage of my work...exporting the file, building my tables and explain the results.
Thank you guys in advance for your help!
Comment