Description Usage Arguments Details Value Note Author(s) References See Also Examples
This function augment data by replacing missing values. It can be used internally in mixmeta
through the control
list.
1 | inputna(y, S, inputvar=10^4)
|
Assuming a meta-analysis or meta-regression based on n units and k outcomes:
y |
a n-dimensional vector (for univariate models) or m x k matrix (for multivariate models) of outcomes. |
S |
series of within-unit variances (or (co)variance matrices for multivariate models) of the estimated outcome(s). For univariate models, this is usually a n-dimensional vector. For multivariate models, it can be provided as: a m-dimensional list of k x k matrices; a tri-dimensional k x k x n array; a matrix or data frame with n rows and k(k+1)/2 or k columns, depending on the availability of the within-unit correlations. |
inputvar |
multiplier for inputting the missing variances in |
The function augments the data by replacing missing values in the outcomes and the associated (co)variances. Specifically, it replaces missing outcomes and missing covariances (if provided) with 0, and missing variances with the largest observed variance multiplied by inputvar
. This value is expected to be very high, by default 10^4, so that the corresponding observation contributes only negligibly to the final estimate.
A matrix with the first k column corresponding to the augmented outcomes, and the remaining k(k+1)/2 or k columns (depending on the availability of the within-study covariances) corresponding to vectorized entries of the lower triangle of the related (co)variance matrices.
Data augmentation used to be the approach to deal with missing values in the first implementation of mixmeta. The current algorithms directly account for missing.
Inputting missing values can be useful when two or more outcomes are never observed jointly, and the estimation is entirely based on indirect comparison. This method can be applied in network meta-analysis, also called indirect treatment comparison.
This approach can produce different results than standard methods, especially when the occurrence of missing is substantial. Preliminary analyses indicate that likelihood-based estimation methods do not seem to be affected, while non-iterative estimators such as method of moments and variance components are more sensitive. The user should be careful on the application of missing augmentation.
Antonio Gasparrini <antonio.gasparrini@lshtm.ac.uk>
Sera F, Armstrong B, Blangiardo M, Gasparrini A (2019). An extended mixed-effects framework for meta-analysis.Statistics in Medicine. 2019;38(29):5429-5444. [Freely available here].
Gasparrini A, Armstrong B, Kenward MG (2012). Multivariate meta-analysis for non-linear and other multi-parameter associations. Statistics in Medicine. 31(29):3821–3839. [Freely available here].
Jackson D, Riley R, White IR (2011). Multivariate meta-analysis: Potential and promise. Statistics in Medicine. 30(20);2481–2498.
White IR (2009). Multivariate random-effects meta-analysis. Stata Journal. 9(1):40–56.
White IR (2011). Multivariate random-effects meta-regression: updates to mvmeta. Stata Journal. 11(2):255-270.
See inputcov
for inputting (co)variance matrices.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # INSPECT THE DATA
head(smoking)
# STANDARD APPROACH TO MISSING DATA
y <- as.matrix(smoking[11:13])
S <- as.matrix(smoking[14:19])
mod1 <- mixmeta(y, S)
summary(mod1)
# WITH DATA AUGMENTATION
augdata <- inputna(y, S)
y <- augdata[,1:3]
S <- augdata[,-c(1:3)]
mod2 <- mixmeta(y, S)
summary(mod2)
# NB: SAME PARAMETER ESTIMATES, BUT WRONG NYUMBER OF OBS
# USED INTERNALLY IN mixmeta
y <- as.matrix(smoking[11:13])
S <- as.matrix(smoking[14:19])
mod3 <- mixmeta(y, S, control=list(inputna=TRUE))
summary(mod3)
# NOW RIGHT NUMBER OF OBS
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.