constrSet: Generate Constraint Sets

Description Usage Arguments Value See Also Examples

View source: R/constrSet.R

Description

Generate sets of constraint matrices (constr), right hand side elements, and numbers of equality constraints (nec) with a predefined structure

Usage

1
2
constrSet(n, set = c("sequence", "seqcontrol", "lplateau", "uplateau",
  "downturn", "williams"), direction = c("increase", "decrease"), base = 1)

Arguments

n

a (possibly named) vector of sample sizes for each group.

set

character string defining the type of constraints; one of "sequence", "seqcontrol", "lplateau", "uplateau", or "downturn"

direction

direction of the inequality constraints, either "increase" or "decrease"

base

column of the constraint matrix representing a control group

Value

a list with slots constr, rhs, and nec for each constraint definition

See Also

orlm, constrMat

Examples

1
2
3
4
5
6
7
n <- c(10,20,30,40)
constrSet(n, set="sequence")
constrSet(n, set="seqcontrol")
constrSet(n, set="lplateau")
constrSet(n, set="uplateau")
constrSet(n, set="downturn")
constrSet(n, set="williams")

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