[Genabel-commits] r1905 - branches/ProbABEL-pvals/ProbABEL/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Dec 30 14:17:08 CET 2014


Author: lckarssen
Date: 2014-12-30 14:17:08 +0100 (Tue, 30 Dec 2014)
New Revision: 1905

Modified:
   branches/ProbABEL-pvals/ProbABEL/src/reg1.cpp
Log:
ProbABEL: minor code layout change.


Modified: branches/ProbABEL-pvals/ProbABEL/src/reg1.cpp
===================================================================
--- branches/ProbABEL-pvals/ProbABEL/src/reg1.cpp	2014-12-30 10:06:38 UTC (rev 1904)
+++ branches/ProbABEL-pvals/ProbABEL/src/reg1.cpp	2014-12-30 13:17:08 UTC (rev 1905)
@@ -577,10 +577,11 @@
     mematrix<double> robust_sigma2(X.ncol, X.ncol);
 
     int offset = X.ncol- 1;
-     //if additive and interaction and 2 predictors and more then 2 betas
-     if (model == 0 && interaction != 0 && ngpreds == 2 && length_beta > 2){
-         offset = X.ncol - 2;
-     }
+    //if additive and interaction and 2 predictors and more then 2 betas
+    if (model == 0 && interaction != 0 && ngpreds == 2 && length_beta > 2)
+    {
+        offset = X.ncol - 2;
+    }
 
     if (robust)
     {



More information about the Genabel-commits mailing list