A library for working with phylogenetic and population genetic data.
v0.32.0
GlmOutput Struct Reference

#include <genesis/utils/math/regression/glm.hpp>

Detailed Description

Definition at line 100 of file glm.hpp.

Public Attributes

std::vector< double > betaQ
 Vector of parameter estimates (in terms of basis matrix, Xb) (size M). More...
 
bool converged = false
 
double deviance = 0.0
 Deviance. More...
 
size_t df_resid = 0
 Residual degrees of freedom. More...
 
std::vector< double > fitted
 Fitted values (size N). More...
 
double null_deviance = 0.0
 Null deviance. More...
 
size_t num_iterations = 0
 
size_t rank = 0
 Rank of X after regression on strata. More...
 
std::vector< double > resid
 Working residuals (on linear predictor scale) (size N). More...
 
double scale = 1.0
 Scale factor (scalar). More...
 
std::vector< double > tri
 Upper unit triangular transformation matrix, with Xb - tr.Xb placed in the diagonal (size (M * (M+1)) / 2). More...
 
std::vector< double > weights
 Weights (size N) More...
 
std::vector< double > which
 Which columns in the X matrix were estimated (first = 0) (size M). More...
 
Matrix< double > Xb
 Orthogonal basis for X space (N * M matrix, with N * rank being used). More...
 

Member Data Documentation

◆ betaQ

std::vector<double> betaQ

Vector of parameter estimates (in terms of basis matrix, Xb) (size M).

Use glm_estimate_betas() to transform this back into the basis of the original predictors.

Definition at line 150 of file glm.hpp.

◆ converged

bool converged = false

Definition at line 102 of file glm.hpp.

◆ deviance

double deviance = 0.0

Deviance.

Difference in goodness of fit between the fitted model and the perfect model, quantifying how well the model with predictors explains the variability in the response variable compared to the null model.

Definition at line 174 of file glm.hpp.

◆ df_resid

size_t df_resid = 0

Residual degrees of freedom.

Definition at line 113 of file glm.hpp.

◆ fitted

std::vector<double> fitted

Fitted values (size N).

Definition at line 128 of file glm.hpp.

◆ null_deviance

double null_deviance = 0.0

Null deviance.

Goodness of fit of a model with only the intercept (no predictors) compared to a perfect model, indicating how well the model with no predictors explains the variability in the response variable.

Definition at line 165 of file glm.hpp.

◆ num_iterations

size_t num_iterations = 0

Definition at line 103 of file glm.hpp.

◆ rank

size_t rank = 0

Rank of X after regression on strata.

Definition at line 108 of file glm.hpp.

◆ resid

std::vector<double> resid

Working residuals (on linear predictor scale) (size N).

Definition at line 133 of file glm.hpp.

◆ scale

double scale = 1.0

Scale factor (scalar).

Definition at line 118 of file glm.hpp.

◆ tri

std::vector<double> tri

Upper unit triangular transformation matrix, with Xb - tr.Xb placed in the diagonal (size (M * (M+1)) / 2).

Definition at line 156 of file glm.hpp.

◆ weights

std::vector<double> weights

Weights (size N)

Definition at line 138 of file glm.hpp.

◆ which

std::vector<double> which

Which columns in the X matrix were estimated (first = 0) (size M).

Definition at line 143 of file glm.hpp.

◆ Xb

Matrix<double> Xb

Orthogonal basis for X space (N * M matrix, with N * rank being used).

Definition at line 123 of file glm.hpp.


The documentation for this struct was generated from the following file: