micsr
objects have a rpar
element which is vector of integers
with names that indicates the kind of the coefficients. For
example, if the 6 first coefficients are covariates parameters and
the next 3 parameters that define the distribution of the errors,
npar
will be c(covariates = 6, vcov = 3). It has an attribute
which indicates the subset of coefficients that should be selected
by default. select_coef
has a subset
argument (a character
vector) and returns a vector of integers which is the position of
the coefficients to extract.
select_coef(
object,
subset = NA,
fixed = FALSE,
grep = NULL,
invert = FALSE,
coef = NULL
)
a numeric vector
a fitted model
a character vector, the type of parameters to extract
if TRUE
, the fixed parameters are selected
a regular expression
should the coefficients that don't match the pattern should be selected ?
a vector of coefficients