CalcLlk: Compute log-likelihood of continuous-time Markov chain

Description Usage Arguments Value

Description

Compute log-likelihood of continuous-time Markov chain

Usage

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

Arguments

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

Value

log-likelihood value


r-glennie/CTMCdive documentation built on June 3, 2019, 5:46 p.m.