Use the GORICA to evaluate theory-based hypotheses in mixed models, SEM, meta-analysis, or with only published estimates and their covariance matrix.
The GORIC needs the likelihood of the model under each hypothesis. For linear models (lm, glm, rlm, mlm), restriktor computes it directly. For other models, that is often not possible. The GORICA (GORIC approximation) solves this: it only needs the estimates of the parameters in your hypotheses and their covariance matrix, and it assumes that the estimates are (approximately) normally distributed. That makes the GORICA applicable to almost any statistical model, and even to results from a published paper (Altınışık et al., 2021).
Which models?
goric() recognizes the following objects and then automatically uses the GORICA:
Model
Package
Parameter names in the hypotheses
lavaan (SEM, CFA, path models)
lavaan
labels, defined parameters (:=) or lavaan names such as y~x1
lmerMod, glmerMod, nlmerMod
lme4
names of fixef(model)
rma
metafor
names of coef(model)
Arima, arme
stats, restriktor
see ?goric_arima
CTmeta, effectlite
CTmeta, EffectLiteR
see ?goric
named numeric vector + VCOV
–
the names of the vector
Example: a generalized linear mixed model
The cbpp dataset from lme4 contains the number of new cases of contagious bovine pleuropneumonia in 15 herds, in four periods. We expect that the incidence decreases over the periods. In a logistic mixed model with period 1 as reference, the coefficients period2 to period4 are the differences in log-odds with period 1:
library(restriktor)library(lme4)fit.glmer <-glmer(cbind(incidence, size - incidence) ~ period + (1| herd),family = binomial, data = cbpp)fixef(fit.glmer)
restriktor (0.7): generalized order-restricted information criterion approximation:
Results:
Values:
model loglik penalty gorica
1 H1 1.131 2.085 1.908
2 complement 1.067 3.875 5.616
Weights:
model loglik.weights penalty.weights gorica.weights
1 H1 0.516 0.857 0.865
2 complement 0.484 0.143 0.135
Conclusion:
The order-restricted hypothesis 'H1' has 6.39 times more support than its
complement.
---
Additional information:
- Note: The log-likelihood (loglik) value of the best hypothesis Hypothesis
'H1' is close to the log-likelihood (loglik) value of Hypothesis
'complement'. You may want to use the benchmark() function to investigate
whether this is the case. If so, then this indicates that there is
support for their boundary. More details can be found in the vignette
'Guidelines_GORIC_output' (to open it, run
vignette("Guidelines_GORIC_output", package = "restriktor")) and in the
decision tree on https://github.com/rebeccakuiper/Tutorials (the file
'Decision tree - Interpretation.pdf').
- The benchmark() function can be used to label the height of the output,
for example, the height of the ratio(s) of weights (e.g., to say whether
that value denotes medium, high, or very large evidence). More details
can be found in the vignette 'Guidelines_GORIC-benchmarks'; to open it,
run vignette("Guidelines_GORIC-benchmarks", package = "restriktor").
- 1 message was given when running goric(). To see it, use:
cat(out.glmer$run_messages, sep = "\n\n")
\(H_1\) has 6.39 times more support than its complement. Note the message in the output: the GORICA is based on the covariance matrix from vcov().
Example: only estimates and their covariance matrix
Sometimes you do not have the data, but only the results of an analysis, for example from a paper or from software outside R. Then you give goric() a named vector of estimates and their covariance matrix VCOV.
Suppose a paper reports the following standardized regression coefficients of three predictors of exam scores, with their covariance matrix (the numbers are made up for this illustration):
restriktor (0.7): generalized order-restricted information criterion approximation:
Results:
Values:
model loglik penalty gorica
1 H1 3.360 1.749 -3.221
2 complement 3.197 2.751 -0.893
Weights:
model loglik.weights penalty.weights gorica.weights
1 H1 0.541 0.731 0.762
2 complement 0.459 0.269 0.238
Conclusion:
The order-restricted hypothesis 'H1' has 3.20 times more support than its
complement.
---
Additional information:
- It is advisable to compare the log-likelihood values (loglik) and/or
weights (loglik.weights) of the best hypothesis with that of the other
specified/informative hypotheses. More details can be found in the
vignette 'Guidelines_GORIC_output' (to open it, run
vignette("Guidelines_GORIC_output", package = "restriktor")) and in the
decision tree on https://github.com/rebeccakuiper/Tutorials (the file
'Decision tree - Interpretation.pdf').
- The benchmark() function can be used to label the height of the output,
for example, the height of the ratio(s) of weights (e.g., to say whether
that value denotes medium, high, or very large evidence). More details
can be found in the vignette 'Guidelines_GORIC-benchmarks'; to open it,
run vignette("Guidelines_GORIC-benchmarks", package = "restriktor").
ImportantUse the full covariance matrix
The estimates of a model are usually correlated. If a paper only reports standard errors, you can use a diagonal matrix with the squared standard errors, but that ignores the correlations and can give misleading results. If possible, ask the authors for the full covariance matrix.
For the small-sample version (type = "goricac"), also give the sample size with sample_nobs.
When several studies investigate the same theory, possibly with different designs and models, the evidence can be aggregated with evSyn(). See the article GORIC(A) evidence aggregation and Kuiper (2022).
References
Altınışık, Y., C.J. Van Lissa, H. Hoijtink, A.J. Oldehinkel, and R.M. Kuiper. 2021. “Evaluation of Inequality Constrained Hypotheses Using a Generalization of the AIC.” Psychological Methods 26 (5): 599–621. doi:10.1037/met0000406.
Kuiper, R.M. 2022. “How to Evaluate Theory-Based Hypotheses in Meta-Analysis Using an AIC-Type Criterion.” Entropy 24 (11): 1525. doi:10.3390/e24111525.