I am studying from the STATA guide.
I typed MATA and then copied and entered the following command as shown in the entry for STATA:
: real matrix id(real scalar n)
{
real scalar i
real matrix res
res = J(n, n, 0)
for (i=1; i<=n; i++) {
res[i,i] = 1
}
return(res)
}
:
: I3 = id(3)
: I3
Which gives the error: nothing found where 'while' expected
r(3000);
Any help is much appreciated.
Related Posts with MATA Error "Nothing found where while expected"
How to set the X axis in the DASP package in stataI want to use the DASP plug-in in stata and use the Lorenz curve to analyze the fairness of inter-pr…
Optimal lags and Error-correction modelGood morning everyone; I want to perform a cointegration with the Error correction model. Everythi…
cmp-random effectsGood day, I am trying to estimate the impact of health status expectations (Exp_h) on consumption ex…
putdocx cell / row heightIs there a way to control the row or cell height in a putdocx table? …
Business calender: Get omitted dates using bodf()I have a list of dates for specific company events of listed US companies. This variable (reguldate)…
Subscribe to:
Post Comments (Atom)
0 Response to MATA Error "Nothing found where while expected"
Post a Comment