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

Description Usage Arguments Value Author(s)

View source: R/fitC.R

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

1
2
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 July 4, 2017, 9:44 a.m.