aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPjotr Prins2017-10-05 11:55:03 +0000
committerPjotr Prins2017-10-05 11:55:03 +0000
commit86323ccaf26ad0a3b706a67a0014dd04b9965823 (patch)
tree14d3cab14fca4b68eb0916992344b8248a380a61 /src
parentd672c81f7963180c4979aecf93b624d12d3f2ed2 (diff)
downloadpangemma-86323ccaf26ad0a3b706a67a0014dd04b9965823.tar.gz
LMM: skip beta (again) with LRT
Diffstat (limited to 'src')
-rw-r--r--src/lmm.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lmm.cpp b/src/lmm.cpp
index e2f23a2..1193700 100644
--- a/src/lmm.cpp
+++ b/src/lmm.cpp
@@ -107,8 +107,10 @@ void LMM::WriteFiles() {
}
auto common_header = [&] () {
- outfile << "beta" << "\t"
- << "se" << "\t";
+ if (a_mode != 2)
+ outfile << "beta" << "\t";
+
+ outfile << "se" << "\t";
outfile << "logl_H1" << "\t"; // we may make this an option
@@ -135,8 +137,12 @@ void LMM::WriteFiles() {
};
auto sumstats = [&] (SUMSTAT st) {
- outfile << scientific << setprecision(6) << st.beta << "\t"
- << st.se << "\t";
+ outfile << scientific << setprecision(6);
+
+ if (a_mode != 2)
+ outfile << st.beta << "\t";
+
+ outfile << st.se << "\t";
outfile << st.logl_H1 << "\t";