pred_int_jb: Prediction Interval for Random-effects Meta-analysis, which...

Description Usage Arguments Value Examples

View source: R/pred_int_jb.R

Description

Prediction for Random-effects Model using Subsampling

Usage

1
pred_int_jb(formula, data, level = 0.95, iter = 10, R = 50, var.names = NULL)

Arguments

formula

standard formula with response ~ trial

data

should be an object of class "data.frame"

level

coverage level with default 0.95

iter

number of iterations for the bootstrap level 1

R

number of iterations for the bootstrap level 2

var.names

variable names to be passed to the 'data.frame' methods

Value

a list with 'pdi' prediction intervals, 'cf' correction factor and 'coverage' empirical coverage

Examples

1
2
3
4
5
6
7
8
## Not run: 
## Using soybean row spacing
data(soyrs)
pdi.rs <- pred_int_jb(formula = lrr ~ Trial_ID, data = soyrs) 
data(soysff)
pdi.ff <- pred_int_jb(formula = lrr ~ Trial_ID, data = soysff) 

## End(Not run)

femiguez/predintma documentation built on July 5, 2021, 4:16 a.m.