Usage
## S3 method for class 'factor':
BinaryPredictor(iv, dv, min.power=0.01, min.robustness=0.5,
max.missing=0.99, max.levels=20, civ=NULL, copy.data=FALSE, name=NULL, \dots)
## S3 method for class 'numeric':
BinaryPredictor(iv, dv, min.power=0.01, min.robustness=0.5,
max.missing=0.99, copy.data=FALSE, name=NULL, \dots)
## S3 method for class 'data.frame':
BinaryPredictor(iv, dv, min.power=0.01, min.robustness=0.5,
max.missing=0.99, verbose=FALSE, copy.data=FALSE, \dots)## S3 method for class 'default':
BinaryPredictor(iv, dv, \dots)
## S3 method for class 'BinaryPredictor':
plot(x, y=NULL, type="bin", plot.missing=TRUE, \dots)
## S3 method for class 'BinaryPredictorList':
print(x, file=NULL, silent=FALSE, \dots)
Arguments
iv
The independent variable(s). May be a factor, numeric, or a data frame.
dv
The dependent variable, which may have only two unique values.
The length / number of rows in iv must match the length of dv.
min.power
The minimum predictive power from PredictivePowerCv
for a variable to be kept.
min.robustness
The minimum robustness from PredictivePowerCv
for a variable to be kept.
max.missing
The maxmimum allowable fraction of missing values for a variable to be kept.
max.levels
For factors, this controls the merging of small bins using MergeLevels.
civ
When a continuous variable is discretized, the original continuous data can
be provided in civ so that linearity can be computed. See Woe for more information.
copy.data
Reserved for future use, indicates if the data should be copied.
name
The variable name. If NULL it will be extracted from the deparsed input iv.
...
Extra arguments are passed to PredictivePowerCv. If iv is numeric
then extra arguments are also passed to BinaryCut.
verbose
If true then calculation information is printed.
x
Output from one of the BinaryPredictor functions.
y
Unused argument for the generic plot function.
plot.missing
When plotting numeric variables a TRUE value
will add a horizontal line representing the log odds associated with
missing values.
type
Reserved for future use, indicates the type of plot to be generated.
The only valid value now is 'bin'.
file
If a filename is provided then summary information will be written to a text file.
silent
If set to TRUE then nothing is printed to the screen.