Usage
grc(y, Rank = 1, Index.corner = 2:(1 + Rank),
str0 = 1, summary.arg = FALSE, h.step = 1e-04, ...)
rcim(y, family = poissonff, Rank = 0, Musual = NULL,
weights = NULL, which.linpred = 1,
Index.corner = ifelse(is.null(str0), 0, max(str0)) + 1:Rank,
rprefix = "Row.", cprefix = "Col.", iprefix = "X2.",
offset = 0, str0 = if (Rank) 1 else NULL,
summary.arg = FALSE, h.step = 0.0001,
rbaseline = 1, cbaseline = 1,
has.intercept = TRUE,
M = NULL,
rindex = 2:nrow(y),
cindex = 2:ncol(y),
iindex = 2:nrow(y),
...)
Arguments
y
For grc
a matrix of counts.
For rcim
a general matrix response depending on family
.
Output from table()
is acceptable; it is converted into a matrix.
Note that y
should be at least 3 b
family
A VGAM family function.
By default, the first linear/additive predictor is fitted
using main effects plus an optional rank-Rank
interaction term.
Not all family functions are suitable or make sense.
All other linear/addit Rank
An integer from the set
{0,...,min(nrow(y), ncol(y))
}.
This is the dimension of the fit in terms of the interaction.
For grc()
this argument must be positive.
A value of 0 means no interactions (i.e., main effects only);
which.linpred
Single integer.
Specifies which linear predictor is modelled as the sum of an
intercept, row effect, column effect plus an optional interaction
term. It should be one value from the set 1:Musual
.
Index.corner
A vector of Rank
integers.
These are used to store the Rank
by Rank
identity matrix in the
A
matrix; corner constraints are used.
rprefix, cprefix, iprefix
Character, for rows and columns and interactions respectively.
For labelling the indicator variables.
offset
Numeric. Either a matrix of the right dimension, else
a single numeric expanded into such a matrix.
str0
Ignored if Rank = 0
, else
an integer from the set {1,...,min(nrow(y), ncol(y))
},
specifying the row that is used as the structural zero.
Passed into rrvglm.control
if summary.arg
Logical. If TRUE
, a summary is returned.
If TRUE
, y
may be the output (fitted
object) of grc()
.
h.step
A small positive value that is passed into
summary.rrvglm()
. Only used when summary.arg = TRUE
.
...
Arguments that are passed
into rrvglm.control()
.
Musual
The number of linear predictors of the VGAM family
function
for an ordinary (univariate) response.
Then the number of linear predictors of the rcim()
fit is
usually the number of columns of y
multipl rbaseline, cbaseline
Baseline reference levels for the rows and columns.
Currently stored on the object but not used.
has.intercept
Logical. Include an intercept?
M, cindex
$M$ is the usual VGAM $M$, viz. the number of linear/additive
predictors in total.
Also, cindex
means column index, and these point to the columns
of y
which are part of the vector of linear/additive predictor
rindex, iindex
rindex
means row index, and these are similar to cindex
.
iindex
means interaction index, and these are similar to cindex
.