Package 'PTERP'

Title: PTE and RP for Optimally-Transformed Surrogate
Description: Evaluates the strength of a surrogate marker by estimating the proportion of treatment effect explained (PTE) and relative power(RP) for the optimally-transformed version of the surrogate. Details available in Wang et al (2022) <arXiv:2209.08414>.
Authors: Layla Parast [cre], Xuan Wang [aut]
Maintainer: Layla Parast <[email protected]>
License: GPL
Version: 1.0
Built: 2025-02-10 02:42:27 UTC
Source: https://github.com/cran/PTERP

Help Index


Hypothetical data for example

Description

Hypothetical data for example

Usage

data("exampledata")

Format

yob

the primary outcome

sob

the surrogate marker

aob

the treatment group indicator where 1 is treatment and 0 is control

Examples

data(exampledata)

Estimates PTE and RE

Description

Evaluates the strength of a surrogate marker by estimating the proportion of treatment effect explained (PTE) and relative power(RP) for the optimally-transformed version of the surrogate.

Usage

PTERP(data,ncut=c(50,100,150,200,500,1000),n.resam=500)

Arguments

data

data

ncut

relative power is calculated at a specific sample size n; this is a numeric vector of sample sizes for which the user wants the relative power, default is c(50,100,150,200,500,1000)

n.resam

number of times to resample, default is 500

Value

A list of:

ptenew.es

Proportion of treatment effect estimate

rp_i1

Estimate of relative power at n=i1 where i1 is the first value given in ncut

rp_i2

Estimate of relative power at n=i2 where i2 is the second value given in ncut, etc.

pte.se

Standard error estimate for the proportion of treatment effect explained

rp.se.i1

Standard error estimate for the relative power at n=i1 where i1 is the first value given in ncut

rp.se.i2

Standard error estimate for the relative power at n=i2 where i2 is the first value given in ncut, etc.

Author(s)

Xuan Wang

Examples

data(exampledata)

output=PTERP(exampledata,ncut=c(50,100,150,200,500,1000))

#reduce resampling
output=PTERP(exampledata,ncut=c(50,100,150,200,500,1000),n.resam=5)