Learn R Programming

metagen (version 1.0)

pfunc: The p_delta(eta) function.

Description

Returns the p-function.

Usage

pfunc(y, d, x)

Arguments

y
study responses.
d
heteroscedasticity.
x
design matrix.

Value

A vector valued function.

Examples

Run this code
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])

Run the code above in your browser using DataLab