cofOK {dwp}R Documentation

Check Whether GLM Coefficients Give Proper Distribution

Description

In order for a fitted GLM to convert to a proper distance distribution, its integral from 0 to Inf must be finite. As a rule, when the leading coefficient is positive, the integral diverges as the upper bound of integration approaches infinity, and cofOK would return FALSE. Likewise, in some cases, the GLM coefficients yield an integral that diverges as the lower bound approaches 0, in which case cofOK returns FALSE as well. cofOK0 and cofOKInf check the left and right tails of the candidate distribution, repectively, for convergence.

Usage

cofOK(cof, distr)

cofOK0(cof, distr)

cofOKInf(cof, distr)

Arguments

cof

vector or matrix of named glm parameters (with "r" as the distance variable)

distr

name of the distribution

Value

boolean vector (or scalar)


[Package dwp version 1.1 Index]