Dear List
This is an excerpt from a mata program:
for (i=k; i<=n; i++) {
if (c[i,i] > ep) {
cii = sqrt(max(c[i,i],0))
if (i > 1) {
s = [|i,1\k-1|]*y[|1\k-1|]
}
ai = (a[i] - s)/cii
bi = (b[i]-s)/cii
de = normal(bi) - normal(ai)
if (de <= dem ) {
ckk = cii; dem = de; am = ai; bm = bi; im = i;
}
}
}
When I run it though I get the following error:
nothing found where subexp expected
Does anyone know what this means and where the error may lie?
Thank you very much for your help!
Regards
Sophie
-------------------------------------------------------------
Friederike Maria-Sophie Barthel
Medical Statistician
MRC Clinical Trials Unit
222 Euston Road
London
NW1 2DA
Tel: 020 7670 4828
Mob: 07939 144610
www.fm-sbarthel.de
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/