is.constrained: Logical Check of Constraints

Description Usage Arguments Details Value Author(s) See Also

View source: R/is.constrained.R

Description

This function provides a logical test of constraints for each initial value or parameter for a model specification, given data.

Usage

1
is.constrained(Model, Initial.Values, Data)

Arguments

Model

This is a model specification function. For more information, see the LaplacesDemon function.

Initial.Values

This is a vector of initial values, or current parameter values. For more information, see the LaplacesDemon function.

Data

This is a list of data. For more information, see the LaplacesDemon function.

Details

This function is useful for testing whether or not initial values changed due to constraints when being passed through a Model specification function. If any initial value changes, then the constrained values that are ouput in the fifth component of the Model specification are suitable as initial values, not the tested initial values.

A parameter may be constrained and this function may not discover the constraint, since the discovery depends on the initial values and whether or not they change as they are passed through the model.

Value

The is.constrained function returns a logical vector, equal in length to the number of initial values. Each element receives TRUE if the corresponding initial value changed due to a constraint, or FALSE if it did not.

Author(s)

Statisticat, LLC. software@bayesian-inference.com

See Also

LaplacesDemon.


LaplacesDemon documentation built on July 9, 2021, 5:07 p.m.