bound.parameters: Forces parameter estimates between defined boundaries.

Description Usage Arguments Value Author(s) Examples

View source: R/bound.parameters.R

Description

bound.parameters is a utility function called during estimation runs. It forces the parameter estimates to remain within the boundaries defined in the .csv file of initial estimates. bound.parameters is typically not called directly by users.

Usage

1
2
3
  bound.parameters(x = NULL,
                   lb = NULL,
                   ub = NULL)

Arguments

x

A vector of p parameter estimates.

lb

A vector of p lower boundaries.

ub

A vector of p upper boundaries.

Value

Returns a vector of p values. The ith element of the returned vector is:

Author(s)

Sebastien Bihorel (sb.pmlab@gmail.com)

Examples

1
2
3
4
bound.parameters(seq(1:5), lb=rep(3,5), ub=rep(4,5))

# The following call should return an error message
bound.parameters(1, lb=rep(3,5), ub=rep(4,5))

scaRabee documentation built on Feb. 4, 2022, 5:07 p.m.