loglike_function: Compute the loglikelihood function

View source: R/mcmc_functions.R

loglike_functionR Documentation

Compute the loglikelihood function

Description

This function computes the BSBT model loglikelihood function. It requires the deprivation levels and the win matrix.

Usage

loglike_function(x, win.matrix)

Arguments

x

The level of deprivation of the areas on an exponential scale

win.matrix

A matrix, where w_ij give the number of times object i beat j

Value

The value of of the loglikelihood function

Examples


win.matrix <- matrix(c(0, 3, 2, 1, 0, 1, 1, 3, 0), 3, 3) #construct win matrix
lambda     <- c(3, 1, 2)

l <- loglike_function(lambda, win.matrix)


BSBT documentation built on Aug. 9, 2022, 5:06 p.m.