pfunc: The p_delta(eta) function.

Description Usage Arguments Value Examples

View source: R/methods-for-inference.R

Description

Returns the p-function.

Usage

1
  pfunc(y, d, x)

Arguments

y

study responses.

d

heteroscedasticity.

x

design matrix.

Value

A vector valued function.

Examples

1
2
3
4
5
6
7
8
bcg   <- bcgVaccineData()
bcg_y <- bcg$logrisk
bcg_d <- bcg$sdiv
bcg_x <- cbind(1,bcg$x)
pfunc(y=bcg_y, d=bcg_d, x=bcg_x)

# Calculating the Mandel-Paule estimate:
pfunc(y=bcg_y, d=bcg_d, x=bcg_x)(dim(bcg_x)[1] - dim(bcg_x)[2])

metagen documentation built on May 29, 2017, 7:13 p.m.