orglsSet: Set of generalised least-squares models

Description Usage Arguments Details Value See Also

View source: R/orglsSet.R

Description

Fitting a specific set of generalisd least-squares models with order restrictions.

Usage

1
2
orglsSet(formula, data, weights = NULL, correlation = NULL, set,
  direction = "increase", n = NULL, base = 1, control = orlmcontrol())

Arguments

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 varClasses object; more details are provided on the help pages in R package nlme

correlation

a corClasses object; more details are provided on the help pages in R package nlme

set

either a character string (see constrSet), or a list with slots for constr, rhs, and nec similarly defined as in orlm

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 orlmcontrol for details.

Details

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.

Value

a list with orgls objects

See Also

orgls, constrSet, goric


goric documentation built on April 19, 2021, 5:06 p.m.