This methods function returns important matrices etc. of a RR-VGLM object.

Coef.rrvglm(object, ...)

Arguments

object

An object of class "rrvglm".

...

Currently unused.

Details

The A, B1, C matrices are returned, along with other slots. See rrvglm for details about RR-VGLMs.

Value

An object of class "Coef.rrvglm" (see Coef.rrvglm-class).

References

Yee, T. W. and Hastie, T. J. (2003). Reduced-rank vector generalized linear models. Statistical Modelling, 3, 15–41.

Author

Thomas W. Yee

Note

This function is an alternative to coef.rrvglm.

See also

Coef.rrvglm-class, print.Coef.rrvglm, rrvglm.

Examples

# Rank-1 stereotype model of Anderson (1984)
pneumo <- transform(pneumo, let = log(exposure.time), x3 = runif(nrow(pneumo)))
fit <- rrvglm(cbind(normal, mild, severe) ~ let + x3, multinomial, data = pneumo)
coef(fit, matrix = TRUE)
#>             log(mu[,1]/mu[,3]) log(mu[,2]/mu[,3])
#> (Intercept)          13.101552          3.6676158
#> let                  -3.195243         -1.0183617
#> x3                   -1.074191         -0.3423574
Coef(fit)
#> A matrix:
#>                       latvar
#> log(mu[,1]/mu[,3]) 1.0000000
#> log(mu[,2]/mu[,3]) 0.3187118
#> 
#> C matrix:
#>        latvar
#> let -3.195243
#> x3  -1.074191
#> 
#> B1 matrix:
#>             log(mu[,1]/mu[,3]) log(mu[,2]/mu[,3])
#> (Intercept)           13.10155           3.667616