A toolkit for working with phylogenetic data.
v0.24.0
GlmExtras Struct Reference

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

Detailed Description

Definition at line 47 of file glm.hpp.

Public Types

enum  ResidualType { kDefault, kPearsonResiduals, kDevianceResiduals }
 

Public Attributes

std::vector< double > initial_fittings
 
bool mean_deviance = false
 Calculate mean null_deviance and mean deviance instead of their sums. More...
 
std::vector< double > prior_weights
 
ResidualType residual_type = ResidualType::kDefault
 
std::vector< size_t > strata
 Strata assignments coded 1...S. More...
 
bool with_intercept = true
 

Member Enumeration Documentation

◆ ResidualType

Enumerator
kDefault 
kPearsonResiduals 
kDevianceResiduals 

Definition at line 58 of file glm.hpp.

Member Data Documentation

◆ initial_fittings

std::vector<double> initial_fittings

Definition at line 49 of file glm.hpp.

◆ mean_deviance

bool mean_deviance = false

Calculate mean null_deviance and mean deviance instead of their sums.

By default, (mean_deviance = false), we calculate the null_deviance and deviance as the sum of unit deviances (see GlmFamily::unit_deviance). If we however set mean_deviance = true, we divide these values by the number of data points, that is, we calculate their mean.

Definition at line 75 of file glm.hpp.

◆ prior_weights

std::vector<double> prior_weights

Definition at line 50 of file glm.hpp.

◆ residual_type

ResidualType residual_type = ResidualType::kDefault

Definition at line 65 of file glm.hpp.

◆ strata

std::vector<size_t> strata

Strata assignments coded 1...S.

Definition at line 56 of file glm.hpp.

◆ with_intercept

bool with_intercept = true

Definition at line 51 of file glm.hpp.


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