create_lc_df_derivOnly: Create a data.frame with the log-normalising derivatives...

View source: R/create_lc_df_derivOnly.R

create_lc_df_derivOnlyR Documentation

Create a data.frame with the log-normalising derivatives (only) for a vector of values of the tempering factor.

Description

Create a data.frame with the log-normalising derivatives (only) for a vector of values of the tempering factor.

Usage

create_lc_df_derivOnly(
  a0_grid,
  compiled.model.prior,
  stan.list,
  pars = NA,
  niter = 5000,
  strict = FALSE,
  step_size = 0.99,
  tdepth = 15
)

Arguments

a0_grid

a vector of values of the tempering factor.

compiled.model.prior

a stan_model object containing the tempered target.

stan.list

list with data for the Stan model.

pars

which parameters to track.

niter

number of iterations, defaults to 5000.

strict

whether to use strict computational specs.

step_size

if spec=TRUE, sets the step_size. Default is step_size = 0.99.

tdepth

if spec=TRUE, sets the tree_depth. Default is tdepth = 15.

Value

a list containing a data.frame with the grid points, log-normalising constant and derivatives. If pars != NA, MCMC summaries for selected parameters are also returned.


maxbiostat/npowerPrioR documentation built on Feb. 22, 2023, 2:13 p.m.