rmeta: Rank-based Meta-analysis

Description Usage Arguments Note Author(s) Examples

View source: R/rmeta.R

Description

Rank-based Meta-analysis

Usage

1
rmeta(data, effect = "fixed", method = "MM", fullsample = TRUE)

Arguments

data

input data

effect

fixed effects or random effects

method

Meta-analysis methods

fullsample

data type. full sample or summary statistics

Note

format for full sample: data[,1] <- study1_treatment; data[,2] <- study1_control; data[,3] <- study2_treatment; data[,4] <- study2_control;...

format for summary statistics: data[1,] <- c(study1_treatmentlocation, study1_treatmentscale, study1_treatmentsamplesize); data[2,] <- c(study1_controllocation,study1_controlscale,study1_controlsamplesize); data[3,] <- c(study2_treatmentlocation,study2_treatmentscale,study2_treatmentsamplesize);...

format for summary statistics - two sample hodges-lehmann: data[1,] <- c(study1_shift,study1_scale,study1_treatmentlocation,study1_controllocation,study1_treatmentsamplesize,study1_controlsamplesize); data[2,] <- c(study2_shift,study2_scale,study2_treatmentlocation,study2_controllocation,study2_treatmentsamplesize,study2_controlsamplesize);...

Author(s)

Yanda Lang, Joseph McKean

Examples

1
2
3
4
5
6
sample1_treat <- rnorm(25,0,1)
sample1_con <- rnorm(25,0,1)
sample2_treat <- rnorm(25,1,1)
sample2_con <- rnorm(25,1,1)
dat <- data.frame(sample1_treat,sample1_con,sample2_treat,sample2_con)
rmeta(dat, effect = "fixed", method = "MM", fullsample = TRUE)

YandaLang/RankMeta documentation built on Dec. 18, 2021, 7:24 p.m.