Description Usage Arguments Value Author(s) Examples
View source: R/bound.parameters.R
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.
1 2 3 | bound.parameters(x = NULL,
lb = NULL,
ub = NULL)
|
x |
A vector of p parameter estimates. |
lb |
A vector of p lower boundaries. |
ub |
A vector of p upper boundaries. |
Returns a vector of p values. The ith element of the returned vector is:
x[i] if lb[i] < x[i] < ub[i]
lb[i] if x[i] <= lb[i]
ub[i] if ub[i] <= x[i]
Sebastien Bihorel (sb.pmlab@gmail.com)
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.