Announcement
Collapse
No announcement yet.
367 results in 0.0087 seconds.
You can also choose from the popular tags.

you don't say which version of Stata you're using, but since version 14 there is a selectindex() function which can used in this case instead of select()....
 6 posts

Christophe Kolodziejczyk replied to Difficulties using Stata's optimize() for a minimization problem with constraintsin MataThere seems to be a general problem with the comformability of your matrices in your objective function.
C is a matrix 4 x 134 and D a matrix 4...
 8 posts
Leave a comment:

Christophe Kolodziejczyk replied to Difficulties using Stata's optimize() for a minimization problem with constraintsin Matap has to be transposed
Code:void weights(todo, p,C,D, W, g, H) { W=(D*p'C):^2 }
 8 posts
Leave a comment:

Christophe Kolodziejczyk replied to Difficulties using Stata's optimize() for a minimization problem with constraintsin MataSome quick comments
1. According to your evaluator you try to minimize with respect to p, which is passed as an argument, but is not...
 8 posts
Leave a comment:

Iskra Sokolovska
There are (at least) three problems
1. there is a comformability error when computing y.
2. varcov and vol...
 3 posts
Leave a comment:

I have only version 12, so I don't know whether Stata corp. has changed the behavior of st_store() since to allow the use of wildcards or abbreviations...
 3 posts
 1 like
Leave a comment:

Yannick Guyonvarch Ok. What was the error? Actually I hadn't tested the program. A parenthesis was missing but I guess it was there the problem was ...Last edited by Christophe Kolodziejczyk; 07 Dec 2017, 08:39.
 10 posts
Leave a comment:

Yannick Guyonvarch
Define an array of pointer to store the data from each list. Define an array of strings of the same size containing the local...
 10 posts
Leave a comment:

Christophe Kolodziejczyk replied to How to make changes in a stata string variable based on a string mata matrix of different dimensionsin MataTry to use selectindex() indstead of select() to get the indices directly
 3 posts
Leave a comment:

Christophe Kolodziejczyk replied to Square root of White Variance for hypothesis testing under heteroskedasticityin MataAnna Kerkhoff German Rodriguez
Great explanation and advice by German.
I would use cross() for computing crossproducts...
 4 posts
Leave a comment:

Seongjin Jin A more direct approach is to use optional arguments (help m2_optargs).
The problem with your approach is that you have to drop the...Last edited by Christophe Kolodziejczyk; 04 Nov 2017, 01:08.
 8 posts
 1 like
Leave a comment:

Jae Li It doesn't. What I meant was to input your variables as doubles. The problem was that the decimal part was not showing up i. But actually it is...
 11 posts
Leave a comment:

Sorry, we should drop the sum() and it should be then.
Code:k = 2 / (A * abs(Z  Z_bar))
 11 posts
Leave a comment:

Riku Perhoniemi The way you have written your matrix does that it is actually a row vector. Use \ for rowjoining.
Code:matrix rix =(0,1,1,1,3,3
 3 posts
Leave a comment:
Leave a comment: