scores.tbn: Computes several likelihood-based score for a given Tweedie...

Description Usage Arguments Value

View source: R/tbnfunctions.R

Description

Computes several likelihood-based score for a given Tweedie Bayesian Network: the log-likelihood, the Akaike Information Criterion (AIC) and the Bayesian Information Criterion (BIC).

Usage

1
scores.tbn(beta, phi, p, X)

Arguments

beta

a matrix of the Tweedie Bayesian network coefficients.

phi

a vector of dispersion parameters.

p

a vector of power parameters.

X

a data frame containing the variables in the model.

Value

This function returns a named list consisting of the Tweedie Bayesian network scores: Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC) and the log-likelihood (ll).


km20/tbn documentation built on Aug. 11, 2018, 4:13 p.m.