is_th_reduced_valid: A helper function to determine if the reduced form parameter...

View source: R/max_lik_fitting_functions.R

is_th_reduced_validR Documentation

A helper function to determine if the reduced form parameter vector is valid

Description

The paramater vector is invalid if:

(a) Any mixture weight does not lie between 0 and 1 (b) mu is not ordered from small to large values (c) A standard deviation is lower than s_min

Neither bounds on the values of the means or the upper values of the standard deviations are checked, but they are enforced in the optimization in fit_trunc_gauss_mix.

Usage

is_th_reduced_valid(th_reduced, s_min = 0)

Arguments

th_reduced

The paramater vector without the first mixture weight

s_min

A minimum value for the mixture standard deviations (default: 0)

Value

TRUE or FALSE


eehh-stanford/baydem documentation built on June 3, 2024, 5:46 p.m.