Learn R Programming

DynTxRegime (version 3.2)

.newCVInfo: Create Cross-Validation Objects

Description

Given parameter options, determine optimal parameter value. Method is not exported

Usage

.newCVInfo(lambdas, kparam, ...)
# S4 method for numeric,missing
.newCVInfo(optimFunc, valueFunc, response, prWgt, txVec, cvFolds, lambdas, x, 
           suppress, ...)
# S4 method for numeric,numeric
.newCVInfo(optimFunc, valueFunc, response, prWgt, txVec, cvFolds, lambdas, x,  
           kernel, kparam, suppress, ...)

Arguments

optimFunc

"character" name of function to be used to perform optimization.

valueFunc

"character" name of function to be used to estimate value.

response

Outcome of interest.

prWgt

Propensity weighting vector.

txVec

Treatment vector coded as +1/-1.

cvFolds

Number of cross-validation folds to complete.

lambdas

Vector of tuning parameters.

x

"matrix" of covariates and treatment histories.

suppress

T/F indicating of screen prints are generated.

kernel

"character" description of kernel to be used.

kparam

NULL or kernel parameter(s) to consider.

...

Used to pass additional arguments to optimFunc.