loglike: Calculate the log likelihood for each observation given a set...

View source: R/agouti_fit.R

loglikeR Documentation

Calculate the log likelihood for each observation given a set of parameters.

Description

Calculate the log likelihood for each observation given a set of parameters.

Usage

loglike(beta, x, y, ID, inner, outer, likelihood_function, weights)

Arguments

beta

The parameter vector

x

covariate matrix

y

observation vector.

ID

The column to use as the group ID column. Unquoted value.

inner

A character defining the inner link function.

outer

A character defining the outer link function.

likelihood_function

The likelihood (error) function given as a function such as dnorm.

weights

Which column to use as within group weights such as population or time.


timcdlucas/agouti documentation built on Feb. 8, 2024, 6:12 p.m.