[Scipy-svn] r2658 - trunk/Lib/sandbox/models

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Jan 31 07:58:02 CST 2007


Author: jonathan.taylor
Date: 2007-01-31 07:58:00 -0600 (Wed, 31 Jan 2007)
New Revision: 2658

Modified:
   trunk/Lib/sandbox/models/regression.py
Log:
changed hstack to vstack to check estimability of a contrast


Modified: trunk/Lib/sandbox/models/regression.py
===================================================================
--- trunk/Lib/sandbox/models/regression.py	2007-01-31 13:02:13 UTC (rev 2657)
+++ trunk/Lib/sandbox/models/regression.py	2007-01-31 13:58:00 UTC (rev 2658)
@@ -330,13 +330,13 @@
 def isestimable(C, D):
     """
     From an q x p contrast matrix C and an n x p design matrix D, checks
-    if the contrast C is estimable by looking at the rank of hstack([C,D]) and
+    if the contrast C is estimable by looking at the rank of vstack([C,D]) and
     verifying it is the same as the rank of D.
     """
 
     if C.ndim == 1:
         C.shape = (C.shape[0], 1)
-    new = N.hstack([C, D])
+    new = N.vstack([C, D])
     if utils.rank(new) != utils.rank(D):
         return False
     return True



More information about the Scipy-svn mailing list