objective: Calculate the log likelihood for the full dataset given a set...

View source: R/agouti_fit.R

objectiveR Documentation

Calculate the log likelihood for the full dataset given a set of parameters.

Description

Calculate the log likelihood for the full dataset given a set of parameters.

Usage

objective(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.