10#ifndef _EXPORT_TO_R_FASTLMM_
11#define _EXPORT_TO_R_FASTLMM_
21 List lst = List::create(
22 Named(
"logLik") = res.
logLik,
23 Named(
"coefficients") = res.
coef,
25 Named(
"vcov") = res.
vcov,
27 Named(
"delta") = res.
delta,
33 Named(
"iter") = res.
iter,
34 Named(
"w.mean") = res.
w_mean,
37 Named(
"A.sat") = res.
A_sat,
38 Named(
"B.sat") = res.
B_sat);
51template <
typename T1,
typename T2,
typename T3>
59List toList(
const vector<ModelFitLMM> &resList){
60 List L = List::create();
62 for(
int i=0; i<resList.size(); i++){
64 L.push_back( toList( res ) );
74 List lst = List::create(
75 Named(
"logLik") = res.
logLik,
76 Named(
"coefficients") = res.
coef,
78 Named(
"vcov") = res.
vcov,
80 Named(
"delta") = res.
delta,
86 Named(
"family") = res.
family,
87 Named(
"iter") = res.
iter,
88 Named(
"w.mean") = res.
w_mean,
91 Named(
"A.sat") = res.
A_sat,
92 Named(
"B.sat") = res.
B_sat);
105template <
typename T1,
typename T2,
typename T3>
110 return toList( res );
Definition ModelFit.h:355
string family
Definition ModelFit.h:385
vec coef
Definition ModelFit.h:40
mat vcov
Definition ModelFit.h:45
vec se
Definition ModelFit.h:41
double dispersion
Definition ModelFit.h:42
Definition ModelFit.h:201
double w_mean
Definition ModelFit.h:208
double logLik
Definition ModelFit.h:204
vec ru
Definition ModelFit.h:205
sp_mat Vsp
Definition ModelFit.h:215
double sigSq_g
Definition ModelFit.h:206
mat A_sat
Definition ModelFit.h:219
mat hessian_vc
Definition ModelFit.h:219
vec s
Definition ModelFit.h:216
mat V
Definition ModelFit.h:214
vec y
Definition ModelFit.h:205
mat U
Definition ModelFit.h:214
bool isSet_U
Definition ModelFit.h:210
bool isSet_Vsp
Definition ModelFit.h:213
double sigSq_e
Definition ModelFit.h:206
mat B_sat
Definition ModelFit.h:219
double delta
Definition ModelFit.h:206
sp_mat Usp
Definition ModelFit.h:215
vec weights
Definition ModelFit.h:205
bool isSet_V
Definition ModelFit.h:212
int iter
Definition ModelFit.h:207
bool isSet_Usp
Definition ModelFit.h:211
Definition fastglmm_fit.h:37
ModelFitGLMM get_result()
Definition fastglmm_fit.h:295
Definition fastlmm_fit.h:35
ModelFitLMM get_result(const bool &returnUS=false)
Definition fastlmm_fit.h:531
Definition CleanData.h:17