Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: mata error - subexp


From   "Friederike Sophie Barthel" <[email protected]>
To   <[email protected]>
Subject   st: mata error - subexp
Date   Fri, 2 Jun 2006 14:02:19 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index