user_constraint: Formalize User-Specified Constraint of fmx Object

View source: R/fmx_constraint.R

user_constraintR Documentation

Formalize User-Specified Constraint of fmx Object

Description

Formalize user-specified constraint of fmx object

Usage

user_constraint(x, distname, K)

Arguments

x

character vector, constraint(s) to be imposed. For example, for a two-component Tukey g-&-h mixture, ‘c(’g1', 'h2')' indicates g_1=h_2=0 given A_1 < A_2, i.e., the g-parameter for the first component (with smaller location value) and the h-parameter for the second component (with larger mean value) are to be constrained as 0.

distname

character scalar, name of distribution

K

integer scalar, number of components

Value

The function [user_constraint()] returns the indices of internal parameters (only applicable to Tukey's g-&-h mixture distribution, yet) to be constrained, based on the type of distribution 'distname', number of components 'K' and a user-specified string (e.g., ‘c(’g2', 'h1')').


fmx documentation built on July 17, 2026, 1:07 a.m.