Learn R Programming

vtreat (version 1.0.4)

catScore: return significnace 1 variable logistic regression

Description

return significnace 1 variable logistic regression

Usage

catScore(varName, x, yC, yTarget, weights, numberOfHiddenDegrees = 0)

Arguments

varName

name of variable

x

numeric (no NAs/NULLs) effective variable

yC

(no NAs/NULLs) outcome variable

yTarget

scalar target for yC to match (yC==tTarget is goal)

weights

(optional) numeric, non-negative, no NAs/NULLs at least two positive positions

numberOfHiddenDegrees

optional scalar >= 0 number of additional modeling degrees of freedom to account for.

Value

significance estimate of a 1-variable logistic regression

Examples

Run this code
# NOT RUN {
d <- data.frame(y=c(1,1,0,0,1,1,0,0,1,1,1,1))
d$x <- seq_len((nrow(d)))
vtreat:::catScore('x',d$x,d$y,1,NULL)

# }

Run the code above in your browser using DataLab