get_start_pos: Determine good starting postions

View source: R/initialization.R

get_start_posR Documentation

Determine good starting postions

Description

This is a simple dispatch function returns good starting positions based on the provided init_method. The different methods are explained on jaatha.

Usage

get_start_pos(
  model,
  data,
  reps,
  sim,
  init_method,
  cores,
  sim_cache,
  block_width,
  zoom_in_steps = 3
)

Arguments

model

The model used for the estimation. See create_jaatha_model.

data

The data used for the estimation. See create_jaatha_data.

reps

The number of independent repetitions.

sim

The number of simulations conducted for each step.

init_method

Determines how the starting position of each repetition is chosen.

cores

The number of CPU cores that will be used for the simulations. The relies on the parallel package, and consequently only one core is supported on Windows.

sim_cache

The simulation cache used in the jaatha analysis

block_width

The relative width of a block within jaatha will fit its local GLM. The default value is usually fine. Increasing this value may help in case jaatha fails to converge, while you can try decreasing it if the estimates of the likelihoods differ from the corrected values in the 'Correcting likelihoods for best estimates' phase.

zoom_in_steps

The number of steps conducted in the zoom-in initialization method. Has no effect if a different initialization method is used. Using the default value is usually fine.

Value

The starting positions, as a matrix. Each row corresponds to a starting positions.

Author(s)

Paul Staab


jaatha documentation built on March 31, 2023, 11:37 p.m.