pfunc: The p_delta(eta) function.

Description Usage Arguments Value Examples

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])

Example output

function (etavec) 
{
    return(sapply(etavec, pfuncuno))
}
<environment: 0x75a16b0>
[1] 0.1421259

metagen documentation built on May 2, 2019, 6:08 a.m.

Related to pfunc in metagen...