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

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

Detailed Description

Definition at line 48 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 59 of file glm.hpp.

Member Data Documentation

◆ initial_fittings

std::vector<double> initial_fittings

Definition at line 50 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 76 of file glm.hpp.

◆ prior_weights

std::vector<double> prior_weights

Definition at line 51 of file glm.hpp.

◆ residual_type

ResidualType residual_type = ResidualType::kDefault

Definition at line 66 of file glm.hpp.

◆ strata

std::vector<size_t> strata

Strata assignments coded 1...S.

Definition at line 57 of file glm.hpp.

◆ with_intercept

bool with_intercept = true

Definition at line 52 of file glm.hpp.


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