Learn R Programming

pbox (version 0.1.8)

coefAll2: 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)

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.

Arguments

obj

An object typically resulting from fit_dist_pbox.

deviance

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

Examples

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

Run the code above in your browser using DataLab