-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlogistic.h
More file actions
56 lines (39 loc) · 1.21 KB
/
logistic.h
File metadata and controls
56 lines (39 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//////////////////////////////////////////////////////////////////
// //
// PLINK (c) 2005-2009 Shaun Purcell //
// //
// This file is distributed under the GNU General Public //
// License, Version 2. Please see the file COPYING for more //
// details //
// //
//////////////////////////////////////////////////////////////////
#ifndef __LOGISTIC_H__
#define __LOGISTIC_H__
#include<vector>
#include "plink.h"
#include "model.h"
using namespace std;
class LogisticModel : public Model {
public:
LogisticModel(Plink *);
~LogisticModel() { };
void setDependent();
void fitLM();
void fitUnivariateLM() { };
void reset();
void pruneY();
vector_t getCoefs();
vector_t getVar();
vector_t getSE();
void displayResults(ofstream &, Locus *);
double getLnLk();
vector_t getPVals();
double getPValue();
void HuberWhite();
private:
vector_t p;
vector<int> Y;
vector_t V; // diagonal p(1-p)
double chisq;
};
#endif