marglik {weightedScores} | R Documentation |
NEGATIVE LOG-LIKELIHOOD ASSUMING INDEPEDENCE WITHIN CLUSTERS
Description
Negative log-likelihood assuming independence within clusters.
Usage
marglik(param,xdat,ydat,margmodel,link)
Arguments
param |
The vector of regression and not regression parameters. |
xdat |
|
ydat |
|
margmodel |
Indicates the marginal model. Choices are “poisson” for Poisson, “bernoulli” for Bernoulli, and “nb1” , “nb2” for the NB1 and NB2 parametrization of negative binomial in Cameron and Trivedi (1998). |
link |
The link function. Choices are “log” for the log link function, “logit” for the logit link function, and “probit” for the probit link function. |
Details
The negative sum of univariate marginal log-likelihoods.
Value
Minus log-likelihood assuming independence.
Author(s)
Aristidis K. Nikoloulopoulos A.Nikoloulopoulos@uea.ac.uk
Harry Joe harry.joe@ubc.ca
References
Cameron, A. C. and Trivedi, P. K. (1998) Regression Analysis of Count Data. Cambridge: Cambridge University Press.