Learn R Programming

simts (version 0.2.2)

code_zero: Optim loses NaN

Description

This function takes numbers that are very small and sets them to the minimal tolerance for C++. Doing this prevents NaN from entering the optim routine.

Usage

code_zero(theta)

Value

A vec that contains safe theta values.

Arguments

theta

A vec that contains estimated GMWM theta values (untransformed).