GlmExtras Struct Reference

`#include <genesis/utils/math/regression/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 |

enum ResidualType |

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.

ResidualType residual_type = ResidualType::kDefault |

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