Description Usage Arguments Value

Compute negative log-likelihood

1 2 | ```
CalcNegllk(par, Xs, dat, len, model = "iid", model.args = NULL,
print = FALSE)
``` |

`par` |
parameter vector on link scale |

`Xs` |
design matrices |

`dat` |
data frame (see fitCTMCdive) |

`len` |
indices that divide par into dive, surfacing parameters |

`model` |
type of model "iid" is no temporal correlation, "cor" is temporal correlation |

`model.args` |
contains nknots (number of knots), smooth (output of MakeSmooth function), and smoothing parameters (lambda) |

`print` |
TRUE if useful output to be printed |

negative log-likelihood

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.