burnin: Burnin period

View source: R/burnin.R

burninR Documentation

Burnin period

Description

This function discards the first log-likelihood values at each inverse temperature as burnin period.

Usage

burnin(x, percentage = NULL, nburnin = NULL)

Arguments

x

A data frame with the folloging columns: logL and invTemp, which contain the log-likelihood and inverse temperature values, respectively.

percentage

Percentage of log-likelihod values to discard at each temperature.

nburnin

Number of log-likelihod values to discard at each temperature.

Value

It produces a new x with a burnin period.

Author(s)

Patricio Maturana Russel p.russel@auckland.ac.nz

Examples

## Not run: 
data(ligoVirgoSim)
burnin(ligoVirgoSim, percentage=10); #discarding 10\% of log-likelihood values at each temperature

## End(Not run)

pmat747/powModSel documentation built on Aug. 1, 2022, 1:07 p.m.