Search found 14 matches
- Mon Jul 22, 2013 1:47 pm
- Forum: Programming
- Topic: error message: vector subtracted from scalar
- Replies: 8
- Views: 5359
Re: error message: vector subtracted from scalar
Thank you so much for your help and expert knowledge :D
- Mon Jul 22, 2013 2:28 am
- Forum: Programming
- Topic: error message: vector subtracted from scalar
- Replies: 8
- Views: 5359
Re: error message: vector subtracted from scalar
EViews doesn't know that the result of the matrix algebra is a scalar. Store the result of that algebra in a temporary vector, then use the 1st element. How do I even calculate the matrix algebra when i can not make the calculations "inside" the vector where I want to store the results? B...
- Sun Jul 21, 2013 2:19 pm
- Forum: Programming
- Topic: error message: vector subtracted from scalar
- Replies: 8
- Views: 5359
Re: error message: vector subtracted from scalar
Thanks a lot. Now i have written the following !rows = @rows(z_dsf_standard) vector (!rows) z_HJ_sd vector (!rows) z_mellemregning for !i=1 to 3 vector (2) z_r_!i z_r_!i (1) = z_afkast (!i,1) ' Her fanger jeg ite periodes aktieafkast z_r_!i (2) = z_afkast (!i,2) ' rf z_mellemregning (!i) = @inverse(...
- Sun Jul 21, 2013 2:00 pm
- Forum: Programming
- Topic: error message: vector subtracted from scalar
- Replies: 8
- Views: 5359
Re: error message: vector subtracted from scalar
The ith element of a vector is a scalar... Hey EviewsGareth, thanks for the reply. Yes i know. I have written z_dsf_standard (!i))^2 - (@inverse(@transpose(z_r_!i)*z_r_!i)*(@transpose(z_r_!i)*(z_dsf_standard (!i)) ))*z_r_!i The second term consists of a 1x2 vector * 2x1 vector * 1x2 vector * scalar...
- Sun Jul 21, 2013 12:37 pm
- Forum: Programming
- Topic: error message: vector subtracted from scalar
- Replies: 8
- Views: 5359
error message: vector subtracted from scalar
Hello I have written the following program in Eviews7: !rows = @rows(z_dsf_standard) vector (!rows) z_HJ_sd for !i=1 to 3 vector (2) z_r_!i z_r_!i (1) = z_afkast (!i,1) ' Her fanger jeg ite periodes aktieafkast z_r_!i (2) = z_afkast (!i,2) ' rf z_hj_sd (!i) = (z_dsf_standard (!i))^2 - (@inverse(@tra...
- Thu Jun 27, 2013 4:56 am
- Forum: Estimation
- Topic: OLS with series containing different number of obs
- Replies: 4
- Views: 3056
Re: OLS with series containing different number of obs
Thank you both :)
- Wed Jun 26, 2013 12:23 am
- Forum: Estimation
- Topic: OLS with series containing different number of obs
- Replies: 4
- Views: 3056
Re: OLS with series containing different number of obs
In my data set I have a dataseries which consists of real stock prices from 1979Q1-2012Q2 and a series for the P/E_ratio for 1980Q1-2012Q2 I want to run the following OLS: log(real_stock_price)-log(real_stock_price(-1)) c log(P/E_ratio) Written like this the dependent variable is the logaritmic rea...
- Tue Jun 25, 2013 3:07 pm
- Forum: Estimation
- Topic: OLS with series containing different number of obs
- Replies: 4
- Views: 3056
OLS with series containing different number of obs
In my data set I have a dataseries which consists of real stock prices from 1979Q1-2012Q2 and a series for the P/E_ratio for 1980Q1-2012Q2 I want to run the following OLS: log(real_stock_price)-log(real_stock_price(-1)) c log(P/E_ratio) Written like this the dependent variable is the logaritmic real...
- Fri May 10, 2013 9:45 am
- Forum: Data Manipulation
- Topic: How do I make an average without creating 100 vectors??
- Replies: 2
- Views: 2410
Re: How do I make an average without creating 100 vectors??
Obviously I am new to this! Thanks :)
- Fri May 10, 2013 9:41 am
- Forum: Estimation
- Topic: GMM with a weighting matrix of my own choise
- Replies: 5
- Views: 3723
Re: GMM with a weighting matrix of my own choise
But I can see, that it is possible to use the identity matrix as weighting matrix in GMM estimation involving a system in stead of the the Hansen (1982) weighting matrix.. That will have to do..
- Fri May 10, 2013 9:24 am
- Forum: Estimation
- Topic: GMM with a weighting matrix of my own choise
- Replies: 5
- Views: 3723
Re: GMM with a weighting matrix of my own choise
Oh no :( !!!!!!!! But thanks for your reply
- Fri May 10, 2013 8:35 am
- Forum: Estimation
- Topic: GMM with a weighting matrix of my own choise
- Replies: 5
- Views: 3723
Re: GMM with a weighting matrix of my own choise
Thank you for your reply EViews Gareth..
Sorry, but I forgot to mention, that i need to specify my own weighting matrix in GMM for a system of equations
Sorry, but I forgot to mention, that i need to specify my own weighting matrix in GMM for a system of equations
- Fri May 10, 2013 12:55 am
- Forum: Estimation
- Topic: GMM with a weighting matrix of my own choise
- Replies: 5
- Views: 3723
GMM with a weighting matrix of my own choise
I want to make a GMM estimation but with the identity matrix and the weighting matrix from Hansen and Jagannathan (1997) in stead of the spectral density matrix, which is standard in Eviews GMM estimation. Is it possible to specify the weighting matrix manually?
I use Eviews 7..
Thanks
Lasse
I use Eviews 7..
Thanks
Lasse
- Fri May 10, 2013 12:52 am
- Forum: Data Manipulation
- Topic: How do I make an average without creating 100 vectors??
- Replies: 2
- Views: 2410
How do I make an average without creating 100 vectors??
I have two time series, X and Y, each containing 100 observations . From these two time series I want to create a vector for each data pair in X and Y, so 100 2x1 vectors, define these vectors as Z_t for t=1,..,100. At last I want to calculate a time series average: 1/T SUM[Z_t(Z_t)']. Is there any ...
