
Coef
is a generic function which computes model
coefficients from objects returned by modelling functions.
It is an auxiliary function to coef
that
enables extra capabilities for some specific models.Coef(object, ...)
vglm
objects
with just an intercept term in the RHS of the formula, e.g.,
y ~ 1
. Then often this function will apply the inverse
link functions to the parameters. See the example below.For reduced-rank VGLMs, this function can return the A, C matrices, etc.
For quadratic and additive ordination models, this function can return ecological meaningful quantities such as tolerances, optima, maxima.
coef
,
Coef.vlm
,
Coef.rrvglm
,
Coef.qrrvglm
,
depvar
.set.seed(123); nn = 1000
mydata = data.frame(y = rbeta(nn, shape1 = 1, shape2 = 3)) # Original scale
# parameters are estimated on a log scale:
fit = vglm(y ~ 1, betaff, mydata, trace = TRUE, crit = "c") # Intercept-only model
coef(fit, matrix = TRUE) # log scale
Coef(fit) # On the original scale
Run the code above in your browser using DataLab