Learn R Programming

bhm (version 1.11)

pIndexControl: Auxiliary function for pIndex fitting

Description

Auxiliary function for pIndex fitting. Typically only used internally by 'pIndexFit', but may be used to construct a control argument to either function.

Usage

pIndexControl(method = c("Efron", "Elc", "Elw"), ci = c("Bootstrap", "Jackknife"), 
                         alpha = 0.05, B = 0, pct = 0.5)

Arguments

method

choose either `Efron' for Efron method, 'Elc' for conditional empirical likelihood, or `Elw' for weighted empirical likelihood method. The default value is `Efron'

ci

Method to construct confidence interval, `Bootstrap' for Bootstrap method and `Jackknife' for Jackknife method

B

number of Bootstrap sample

alpha

significance level (e.g. alpha=0.05)

pct

Percentile of threshold (i.e. the cut point), default is 0.5

Value

This function checks the internal consisitency and returns a list of value as inputed to control model fit of pIndex.

Details

Control is used in model fitting of `pIndex'.

See Also

bhm, pIndex

Examples

Run this code
# NOT RUN {
## To calculate the probability index for a biomarker with conditional empirical likelihood method, 
## and the corresponding 90 percent CI using Bootstrap method with 10000 bootstrap sample

ctl = pIndexControl(method = 'Elc', ci = 'Bootstrap', B = 10000, alpha = 0.1)

##
## then fit the following model
##
#  fit = pIndex(y~x1 + x2, family = 'surv', control = ctl)
##
# }

Run the code above in your browser using DataLab