coefAll2 {pbox}R Documentation

Extract Coefficients

Description

This is an internal method to extract coefficients from the list of the fitted distributions for each variable resulting from fit_dist_pbox. This method handles potential issues with parameter extraction from the complex objects created by GAM-like models.

Usage

coefAll2(obj, deviance = FALSE)

Arguments

obj

An object typically resulting from fit_dist_pbox.

deviance

Logical value indicating whether to compute deviance for the fitted model.

Value

A list of coefficients, possibly including 'mu', 'sigma', 'nu', and 'tau', depending on the model specification in obj. If deviance is TRUE, it also includes the deviance of the model.

Examples

data(SEAex)
pbx <- set_pbox(SEAex)
coefAll2(pbx@fit[[1]]$allDistrs$Thailand)

[Package pbox version 0.1.8 Index]