fitC: Estimate the Power of the Contact Matrix in a '"hhh4"' Model

fitCR Documentation

Estimate the Power of the Contact Matrix in a "hhh4" Model

Description

The profile log-likelihood of the log(power) parameter of the contact matrix (see powerC) is maximized using optim. The hhh4 fit for the optimal power value is returned with an additional element logpower which holds information on the result of the optimization.

Usage

fitC(object, C, normalize = TRUE, truncate = TRUE, optim.args = list(), ...)

Arguments

object

a model fit of class "hhh4".

C

the contact matrix to use.

normalize, truncate

see powerC.

optim.args

a list to modify the default optimization parameters.

...

additional arguments for each run of update.hhh4.

Value

an object of class "fitC", which is an "hhh4" object with an additional element logpower.

Author(s)

Sebastian Meyer


hhh4contacts documentation built on Nov. 6, 2023, 5:09 p.m.