Fitting a specific set of generalisd least-squares models with order restrictions.
orglsSet(formula, data, weights = NULL, correlation = NULL, set, direction = "increase", n = NULL, base = 1, control = orlmcontrol())
formula | an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. |
---|---|
data | an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which lm is called. |
weights | a |
correlation | a |
set | either a character string (see |
direction | direction of the order constraints |
n | a (possibly named) vector of sample sizes for each group |
base | column of the constraint matrix representing a control group |
control | a list of control arguments; see |
a list with orgls objects
This function is just a wrapper for repeated calls of orgls
with different constraint definitions. Predefined lists with constraint-sets can be constructed with function constrSet
.