getInitialPosition: Get an eligible initial value for a MTN with given mean and...

View source: R/getSampleFunctions.R

getInitialPositionR Documentation

Get an eligible initial value for a MTN with given mean and truncations

Description

For a given MTN the function returns an initial vector whose elements are one of: (1) middle point of the truncation interval if both lower and upper bounds are finite (2) lower (upper) bound +0.1 (-0.1) if only the lower (upper) bound is finite (3) the corresponding mean value if lower bound = -Inf are upper bound = Inf.

Usage

getInitialPosition(mean, lowerBounds, upperBounds)

Arguments

mean

a d-dimensional mean vector.

lowerBounds

a d-dimensional vector specifying the lower bounds.

upperBounds

a d-dimensional vector specifying the lower bounds.

Value

an eligible d-dimensional initial vector.


hdtg documentation built on Aug. 7, 2022, 1:06 a.m.