CalcNegllk: Compute negative log-likelihood

Description Usage Arguments Value

Description

Compute negative log-likelihood

Usage

1
2
CalcNegllk(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

negative log-likelihood


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