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"
Question about conformability: multiple imputation for measurement errorHi, I am trying to run a multiple imputation to correct for measurement error. Using "Int J Epidemi…
Keeping mutliple observationsHello, I am currently working with a complete dataset with all firms in a country. However, I only …
Not sorted error when trying to generate new lagged variablesHello, I am working on a project where I want to study how inheritances affect labour supply of rec…
identical marginal effects after xtpoisson with fixed-effectsI am trying to estimate the impact of a program introduced in the US in 2007 on the yearly number of…
Arellano & BondHi there, I am looking for some advice on using the xtabond command. In an effort to study the rel…
Subscribe to:
Post Comments (Atom)
0 Response to MATA Error "Nothing found where while expected"
Post a Comment