calcLRint: calcLRint

View source: R/calcLRint.R

calcLRintR Documentation

calcLRint

Description

Calculating marginal likelihood based on integration

Usage

calcLRint(
  mlefitHp,
  mlefitHd,
  reltol = 0.001,
  maxEval = 0,
  dev = 3,
  verbose = TRUE
)

Arguments

mlefitHp

A fitted object returned from contLikMLE (under Hp)

mlefitHd

A fitted object returned from contLikMLE (under Hd)

reltol

Required relative tolerance error of evaluations in integration routine. Default is 0.001.

maxEval

Maximum number of evaluations in the adaptIntegrate function. Default is 0 which gives an infinite limit.

dev

Scaling relative to 2*SE (i.e. 97.5 percentile). Should cover most of post

verbose

Whether printing simulation progress. Default is TRUE

Details

The procedure is a wrapper for the numerical integration function.

Value

returned inferred LR with error range (reflects relative error)

Author(s)

Oyvind Bleka


oyvble/euroformix documentation built on Aug. 25, 2023, 11:14 a.m.