Learn R Programming

npde (version 3.5)

npdeControl: Set options for an NpdeObject

Description

Set, replace and check options for an NpdeObject

Usage

npdeControl(boolsave = TRUE, namsav = "output", type.graph = "eps",
verbose = FALSE, calc.npde = TRUE, calc.npd = TRUE, decorr.method = "cholesky",
cens.method = "omit", ties = TRUE, sample = FALSE)

check.control.options(opt)

replace.control.options(opt,...)

replace.control.options(opt, ...)

check.control.options(opt)

Value

A list of settings for the computation of pd/npde

Arguments

boolsave

whether to save the results (a file containing the numerical results and a file with the graphs)

namsav

the root name of the files to save to (the file with the results will be named ROOTNAME.npde and the graphs will be saved to ROOTNAME.format where format is given by the type.graph argument)

type.graph

type of graph to save to (one of "eps", "pdf", "jpeg", "png")

verbose

a boolean; if TRUE, a message is printed as the computation of the npde begins for each new subject

calc.npde

a boolean; TRUE to compute npde

calc.npd

a boolean; TRUE to compute npd

decorr.method

the method used to decorrelate simulated and observed data (see npde.decorr.method)

cens.method

the method used to handle censored data (see npde.cens.method)

ties

if FALSE, a smoothing will be applied to prediction discrepancies to avoid ties

sample

if TRUE, the test on the pd will be performed after randomly sampling only pd per subject

opt

a list of control options to be checked

...

named parameters to be changed. The names will be compared to the names of the control variables and changed, with warnings issued for names that do not match.