calcLRint: calcLRint

View source: R/calcLRint.R

calcLRintR Documentation

calcLRint

Description

Calculating marginal likelihood based on integration

Usage

calcLRint(
  mlefitHp,
  mlefitHd,
  reltol = 1,
  maxEval = 1000,
  dev = 2,
  verbose = TRUE
)

Arguments

mlefitHp

A fitted object returned from calcMLE (under Hp)

mlefitHd

A fitted object returned from calcMLE (under Hd)

reltol

Required relative tolerance error of evaluations in integration routine

maxEval

Maximum number of evaluations in the integration routine function.

dev

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

verbose

Whether printing simulation progress.

Details

The procedure is a wrapper for the numerical integration function for obtaining Bayes Factor

Value

returned inferred LR with error range (reflects relative error)

Author(s)

Oyvind Bleka


oyvble/euroformix documentation built on April 13, 2025, 3:18 a.m.