Computes statistics to evaluate the goodness-of-fit from dosresmeta Objects
Computes statistics to evaluate the goodness-of-fit from dosresmeta Objects
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
gof(object, fixed =TRUE)## S3 method for class 'gof.dosresmeta'print(x, digits =3,...)
Arguments
object: an object of class dosresmeta produced by dosresmeta.
fixed: logical for selecting fixed model. By default equal to TRUE.
x: an object of class gof.dosresmeta produced by gof.
digits: an integer specifying the number of digits to which printed results must be rounded.
...: further arguments passed to or from other methods.
Returns
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.
Examples
## Loading the datadata("milk_ov")## Linear dose-response modellin <- dosresmeta(formula = logrr ~ dose, type = type, id = id, se = se, cases = case, n = n, data = milk_ov)## Display goodness-of-fit statisticsgof(lin)## Meta-regression modellin_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 modelgof(lin_reg)
References
Discacciati A, Crippa A, Orsini N. Goodness of fit tools for dose-response meta-analysis of binary outcomes. Research synthesis methods. 2015 Jan 1.