# Calculate the log-likelihood

### Description

The log-likelihood is calculated with taking into account the type of data ('gaussian', 'binomial', ... etc) and the link function.

### Usage

1 |

### Arguments

`y` |
Observed values. |

`n` |
Vector of '1's and same length as y. |

`mu` |
Predicted values. |

`wt` |
Weights. |

`family` |
An object of class |

`nparam` |
Number of parameters of the model. |

`disp_mod` |
Dispersion of the 'glm' model. |

### Details

This function calculates the log-likelihood for the
exponential `family`

, it uses the 'AIC'
function to realise this operatin.

### Value

The log-likelihood of an individual (trajectory).

### Note

Meant to be used internally.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.