Hi,
I have two variables for which I use the sum command to aggregate the values, so I end-up with two numbers. I want to export these two results so I use the matrix function. I also want to divide these two results together and export the result too. It is here that I have a problem. I do not find how to proceed for the division.
I have the following code :
Code:
.estpost tabstat VARIABLE1 if year == 2008, statistics(sum)
.esttab, wide nonumber cell("sum(label(Total Variable1 in 2008))")
.mat II = e(sum)'
.estpost tabstat VARIABLE2 if year == 2008, statistics(sum)
.esttab, wide nonumber cell("sum(label(Total Variable2 in 2008))")
.mat JJ = e(sum)'
.putexcel set "name.xlsx", replace
.putexcel A3 = "2008"
.putexcel B3 = matrix(II)
.putexcel C3 = matrix(JJ)
Thank you in advance.
David
Related Posts with matrix division
Panel Co-integration Test:I am running a panel cointegration test using the Pedroni approach. The panel consists of 53 countri…
Identification of waitresses who previously worked in particular roles I would like to define a waitress, and not receptionist, (identified by employee ID and a dummy var…
Ytitle positionI want to reposition the title of the Y axis to where the red line I marked in the attached screensh…
xtpmg r-squaredDear all, I am using xtpmg to estimate an error correction mechanism with panel data. I am able to…
Table commandHi guys I'm at the beginning of this software I'm running this command to obtain a table with the me…
Subscribe to:
Post Comments (Atom)
0 Response to matrix division
Post a Comment