If you write your own probability density function it should. The data point and the parameter values remember R is. We can easily calculate this probability in two different ways in R.
Returns an object say r of class logLik which is a number with attributes attr r df d egrees of f reedom giving the number of estimated parameters in the.
Ive been calculated the log likelihood using dmvnorm function in mvtnorm r package. I want to calculate the loglikelihood for multivariate linear regression. For a glm fit the family does not have to specify how to calculate the log-likelihood so this is based on using the familys aic function to compute the AIC. LogLikglm base R Documentation.