Description Usage Arguments Value Author(s) References Examples
This function computes statistics to evaluate the goodness-of-fit for dose-response meta-analysis. It implements the deviance test, the coefficient of determination, and a dataframe useful for a decorrelated residuals-versus-exposure plot. See reference for more details
1 2 3 4 |
object |
an object of class |
fixed |
logical for selecting fixed model. By default equal to |
x |
an object of class |
digits |
an integer specifying the number of digits to which printed results must be rounded. |
... |
further arguments passed to or from other methods. |
A list of class gof.dosresmeta
containing the following
tdata | a dataframe with the decorrelated variables (y*, X*, e*). |
R2 | Coefficient of determination R^2. |
deviance | Deviance test. |
Alessio Crippa, alessio.crippa@ki.se
Discacciati A, Crippa A, Orsini N. Goodness of fit tools for dose-response meta-analysis of binary outcomes. Research synthesis methods. 2015 Jan 1.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Loading the data
data("milk_ov")
## Linear dose-response model
lin <- dosresmeta(formula = logrr ~ dose, type = type, id = id,
se = se, cases = case, n = n, data = milk_ov)
## Display goodness-of-fit statistics
gof(lin)
## Meta-regression model
lin_reg <- dosresmeta(formula = logrr ~ dose, type = type, id = id,
se = se, cases = case, n = n, data = milk_ov,
mod = ~ type)
## Display goodness-of-fit statistics for meta-regression model
gof(lin_reg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.