logliklong: The Loglikelihood Function for Overdispersed Multivariate...

Description Usage Arguments Value

View source: R/logliklong.R

Description

The Loglikelihood Function for Overdispersed Multivariate Count Outcome in Repeated Measurements

Usage

1
logliklong(pars, dataset, Des, model)

Arguments

pars

The vector of fixed effect parameters followed by logarithm of s.u and logarithm of the overdispersion parameter theta.

dataset

A list of two elements, where the first element is the multivariate outcome and the second element is the matrix of categorical covariates.

Des

A list of two elements, where the first element is the left hand side of the matrix equation of the loglinear model and the second element is the design matrix for the regression covariates.

model

A model for the multivariate count outcome. Either DMM, CNBM or UNBM.

Value

The estimated regression parameters of regression model, the loglikelihood values, and the Hessian matrix of the estimated parameters. This loglikelihood function is used to estimate parameters of the regression of multivariate count outcome on categorical covariate in the repeated measurement setting in which the correlation between observation at two different time points is accounted ($\sigma^2_u \neq 0$).


IvonneMartin/CombinedMultinomial documentation built on Dec. 17, 2021, 11:32 p.m.