meta_fixef | R Documentation |
This function performs a fixed-effects meta-analysis on input beta estimates and standard errors. It supports two types of weighting schemes: inverse-variance weighting and equal weighting.
meta_fixef(beta, se, weighting = c("inv_var", "equal"))
beta |
A numeric matrix of beta estimates from multiple studies or tests. |
se |
A numeric matrix of standard errors corresponding to the beta estimates. |
weighting |
A character string specifying the weighting scheme to use. Options are "inv_var" (default) for inverse-variance weighting and "equal" for equal weighting. |
A list containing the following elements:
estimateA numeric vector of the combined beta estimates.
seA numeric vector of the pooled standard errors.
statA numeric vector of the combined z-scores.
probA numeric vector of the combined p-values.
stat_typeA character string indicating the type of statistic used, in this case "zstat".
beta <- matrix(c(0.5, 1, 0.75), nrow=1)
se <- matrix(c(0.2, 0.15, 0.25), nrow=1)
result <- meta_fixef(beta, se, weighting = "inv_var")
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.