Learn R Programming

metacart (version 3.0.4)

BootCI: This functions performs bootstrap to compute the confidence intervals for the subgroup effect size estimates. This function is only applicable to Random effects metaregression trees with 2 terminal nodes or more.

Description

This functions performs bootstrap to compute the confidence intervals for the subgroup effect size estimates. This function is only applicable to Random effects metaregression trees with 2 terminal nodes or more.

Usage

BootCI(Metatree, nboot = 50)

Value

tree containing the input tree, the Bootstrap estimates for the effect sizes and standard errors, Bootstrap estimate for tau2, and the Bootstrap bias correction.

Arguments

Metatree

fitted tree of class REmrt.

nboot

number of bootstrap samples.

Examples

Run this code
set.seed(12345) 
data(dat.BCT2009)
library(Rcpp)
REtree <- REmrt(g ~ T1 + T2+ T4 +T25, vi = vi, data = dat.BCT2009, c.pruning = 0)
BootTree<-BootCI(REtree, nboot = 3)
summary(BootTree)

Run the code above in your browser using DataLab