Splitting out the names of linear predictors or Numeric values for parameters in time series family functions in VGAMextra.
break.VGAMextra(eta = NULL,
M1 = NULL,
noInter = NULL,
bOrder = NULL,
NOS = NULL,
lInter = "identitylink",
lvar = "loglink",
lsd = "loglink",
lcoeff1 = "rhobitlink",
lcoeff2 = "rhobitlink",
typeTS = "AR",
namesLP = FALSE,
Complete = FALSE,
varArg = NULL)
A list containing either the names of the linear predictors or the
parameters values (not linear predictors) unwrapped from tje
eta
matrix, as follows:
a) If namesLP = FALSE
(default), value of parameters are
returned in this order: the intercept (1), standard deviation and
variance of the white noise (2, 3), and the coefficients (4).
b) If namesLP = TRUE
, names of linear predictors are
returned in the first entry, whereas parameter names are
allocated to the second entry.
Yee and Wild (1996) provide more detailed information about the relationship between linear predictors and parameters within the VGLM statistical framework.
A matrix of dimensions c(n, M)
storing the linear predictors
values coming from the vglm
fit. Here, warning
below for further information.
Number of parameters involved in the vglm
fit.
Logical. To determine whether the intercept is
estimated. If 'TRUE'
,
the intercept is not estimated and set to 0.
A vector. The order of the linear process fitted. Either a single number (if one response), or a vector (if multiple responses).
Integer. Number of respones set in the vglm
call.
Link functions applied to parameters. Same as in
ARXff
, or
MAXff
.
Character. Currently, options "AR"
for Autoregressive, and
"MA"
for Moving Average processes are handled.
Logical. This function returns either the names of linear the
predictors/parameters ( if namesLP = TRUE
) or parameter
values (default) broken down from the eta
matrix.
Logical. If TRUE
, columns of zeros are incorporated into the
matrix eta
. See below for further details.
Sames as in ARXff
or
MAXff
Note that library VGAM is definitely required.
Victor Miranda and T. W. Yee
Be aware of the dimensions of matrix eta
. It is c(n, M)
,
where
Time series family functions in VGAMextra currently recycle
the order set in the vglm
.
Particularly, it occurs when the number of responses is fewer than
the specified order. For instance, if the order set in vglm
is
Due to such flexibility, time series family functions require specific functions to unload the amount of code within each one.
Moreover, when the order is recycled, the matrix eta
is
completed, as if the order was the same for each response.
This feature is enabled when Complete = TRUE
.
This `common' order turns out to be the maximum order established in
the vector order
. This trick makes the family function to work
properly. To return to the riginal `order', eta
is reduced
in the same number of colums initially added.
break.VGAMextra
works in this context. It may return either
the names of the linear predictors/parameters, or the parameter values
splitted out as a list. Thus, link functions entered in the vglm
call must be passed down to this functions.
For further details on link functions refer to
CommonVGAMffArguments
.
Yee, T. W. and Wild, C. J. (1996) Vector Generalized Additive Models. Journal of the Royal Statistical Society, Series B, Methodological, 58(3), 481--493.
ARXff
,
MAXff
,
CommonVGAMffArguments
,
vglm
.
# \donttest{
library(VGAM)
eta <- matrix(runif(100), nrow = 10, ncol = 10)
M1 <- c(5, 5)
noInter <- FALSE
bOrder <- c(3, 3)
NOS <- 2
### ONLY LINEAR PREDICTORS/PARAMETERS NAMES!
### RETURNED OBJECT IS A LIST !
break.VGAMextra(M1 = M1,
noInter = noInter,
bOrder = bOrder,
NOS = NOS,
typeTS = "AR",
namesLP = TRUE,
varArg = TRUE)
### PARAMETER VALUEs... "UNWRAPPED". Inverse link functions are applied.
### Note that namesLP must be set to FALSE
break.VGAMextra(eta = eta,
M1 = M1,
noInter = noInter,
bOrder = bOrder,
NOS = NOS,
typeTS = "AR",
namesLP = FALSE,
varArg = TRUE)
# }
Run the code above in your browser using DataLab