SHAZAM Questions and Answers (Q&A) - RSS feedhttp://community.econometrics.com/questions/SHAZAM Econometrics, Statistics and Analytics Communityen<font color="white">Copyright <b>SHAZAM Analytics, 2018</b></font>Thu, 02 Feb 2017 13:26:06 +0000MATRIX ALGEBRAhttp://community.econometrics.com/question/746/matrix-algebra/ I have a matrix A. Let's say 10 columns and 50 rows. Problem: I want to delete rows 25 to 30, and use the remaining part of the matrix in the calculations. I checked the Shazam manual (pp. 406-407), but the example was not easy to understand. Any good ideas how to delelete rows (and columns)?
Regards,
TL TLThu, 02 Feb 2017 13:26:06 +0000http://community.econometrics.com/question/746/From data-file to matrixhttp://community.econometrics.com/question/731/from-data-file-to-matrix/ Hi all,
Shazam is a flexible tool. I want to use Shazam in my input-output analysis. The input-output coefficients are stored in a text-file, dimension 50x50. *Question*: How can I “transform” data-files to matrices so I can solve the system by using matrix algebra?
Regards,
TL
TLFri, 28 Oct 2016 13:04:16 +0000http://community.econometrics.com/question/731/Reorganizing data-matrixhttp://community.econometrics.com/question/433/reorganizing-data-matrix/Hi all,
**Background**: I’m planning to analyze daily data covering all months of the year. The total time horizon is six years. The data-matrix has the following structure (please, see attached pdf-file observation for 1980): 12 columns – one for each month and 31 rows for daily observations – but note that February has 29 observations and April, June, Sept and November, respectively have 30).
**Problems**:
(1) Is it possible to reorganize the data in Shazam so the daily data/observations for each of the months are linked together in a single column, i.e. month by month etc.?
(2) I’m also interesting in generating monthly average data by using this matrix (monthly scale over six years) and the first best is to store the data in one column.
[testdata.csv](/upfiles/1389812852409544.csv)
PanteraWed, 15 Jan 2014 13:08:58 +0000http://community.econometrics.com/question/433/Creating variables from saved coefficientshttp://community.econometrics.com/question/246/creating-variables-from-saved-coefficients/Hi all,
Say I run 10 OLS simple regressions in a do-loop and I save the intercept and the slope of each regression with the COEF option. Been going crazy about this: How can I put the 10 intercepts saved into one vector (variable) and the 10 slopes saved into another vector (variable)??? Thanks in advance!jaeshazamSat, 22 Sep 2012 16:16:51 +0000http://community.econometrics.com/question/246/When estimating a System of Equations, how do I copy the coefficients to a matrix?http://community.econometrics.com/question/186/when-estimating-a-system-of-equations-how-do-i-copy-the-coefficients-to-a-matrix/A SHAZAM User asked:
I am struggling with a little problem. When estimating a system, and storing the coefficients in a vector called beta, I would like to copy these coefficients into a 4x6 matrix. I am not able to do this. Can you help?
See my example below:
sample 1 100
genr p1=1+nor(1)
genr p2=1+nor(1)
genr p3=1+nor(1)
genr p4=1+nor(1)
genr x=1+nor(1)
genr q1=20-10*p1+2*p2+0.5*p3+1.5*p4+4*x+nor(20)
genr q2=10+0.5*p1-1*p2+1.5*p3+0.5*p4+6*x+nor(30)
genr q3=40+3*p1+1*p2-1.5*p3+2.5*p4+2*x+nor(20)
genr q4=30+2*p1+1*p2+2.5*p3-3.5*p4+3*x+nor(30)
genr one=1
system 4 / DN noconstant coef=beta
ols q1 one p1 p2 p3 p4 x
ols q2 one p1 p2 p3 p4 x
ols q3 one p1 p2 p3 p4 x
ols q4 one p1 p2 p3 p4 x
end
stop
SHAZAMHelpSat, 12 Mar 2011 07:23:51 +0000http://community.econometrics.com/question/186/