score.mlmm | R Documentation |
Extract or compute the first derivative of the log-likelihood of each linear mixed model.
## S3 method for class 'mlmm'
score(
x,
effects = "contrast",
indiv = FALSE,
p = NULL,
newdata = NULL,
ordering = "by",
simplify = TRUE,
...
)
x |
a |
effects |
[character] By default will output the estimates relative to the hypotheses being tested ( |
indiv |
[logical] Should the contribution of each cluster to the score be output? Otherwise output the sum of all clusters of the derivatives. |
p |
[list of numeric vector] list of model coefficients to be used. Only relevant if differs from the fitted values. |
newdata |
[NULL] Not used. For compatibility with the generic method. |
ordering |
[character] should the output be ordered by type of parameter ( |
simplify |
[logical] should the score be combined across models into a single vector ( |
... |
passed to |
When argument indiv is FALSE
, a vector with the value of the score relative to each coefficient.
When argument indiv is TRUE
, a matrix with the value of the score relative to each coefficient (in columns) and each cluster (in rows).
When effects
differs from "contrast"
and simplify=FALSE
, it will store the score in a list with an element relative to each parameter or model (argument ordering
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.