Search found 5 matches
- Wed May 27, 2015 2:53 pm
- Forum: Help With Programming
- Topic: How to get the median of each row of a matrix
- Replies: 1
- Views: 4775
How to get the median of each row of a matrix
So I guess this is similar question to one posted previously. I was wondering how you can get the median value for each row in a matrix. So here is some of the code I am using but I keep on getting this error "## SX22. Expected Type REAL, Got VECTOR[REAL] Instead >>>>(forecastA,i),0.5)<<<<"...
- Wed Mar 25, 2015 8:46 pm
- Forum: Looking for Code?
- Topic: Clark and McCracken (2015) Journal of Econometrics
- Replies: 2
- Views: 5644
- Wed Mar 25, 2015 3:52 pm
- Forum: Looking for Code?
- Topic: Clark and McCracken (2015) Journal of Econometrics
- Replies: 2
- Views: 5644
Clark and McCracken (2015) Journal of Econometrics
I was wondering anyone had code to do the weighted ridge regression bootstrap in Clark and McCracken (2015) for tests of equal predictive ability.
- Wed Mar 18, 2015 11:59 am
- Forum: Help With Programming
- Topic: How to get the max values of each row in each matrix
- Replies: 2
- Views: 5129
- Wed Mar 18, 2015 11:39 am
- Forum: Help With Programming
- Topic: How to get the max values of each row in each matrix
- Replies: 2
- Views: 5129
How to get the max values of each row in each matrix
So I am having a problem finding out how to get the maximum value in each row of a matrix. So for example say I had a 3x3 matrix with the first row being 1,2,3. The second row is 3,2,1 and finally the third row is 2,1,3. I would like to get a 3x1 vector that has values of 3,3,3.