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

Description Usage Arguments

View source: R/agouti_fit.R

Description

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

Usage

1
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 Jan. 14, 2022, 7:33 p.m.