select_coef | R Documentation |
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)
object |
a fitted model |
subset |
a character vector, the type of parameters to extract |
fixed |
if |
grep |
a regular expression |
invert |
should the coefficients that don't match the pattern should be selected ? |
a numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.