ll.tbn: Compute the log-likelihood within a Tweedie Bayesian network.

Description Usage Arguments Value Examples

Description

This function computes the log-likelihood within a Tweedie Bayesian network for a given data set.

Usage

1
ll.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: Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Normalized Root Mean Squared Error (NRMSE) and the log-likelihood (ll).

Examples

1
2
3
4
## Not run: 
ll.tbn(beta, phi, p, X)

## End(Not run)

km20/tbn documentation built on May 29, 2019, 11:44 a.m.