powered by
return significnace 1 variable logistic regression
catScore(varName, x, yC, yTarget, weights, numberOfHiddenDegrees = 0)
name of variable
numeric (no NAs/NULLs) effective variable
(no NAs/NULLs) outcome variable
scalar target for yC to match (yC==tTarget is goal)
(optional) numeric, non-negative, no NAs/NULLs at least two positive positions
optional scalar >= 0 number of additional modeling degrees of freedom to account for.
significance estimate of a 1-variable logistic regression
# 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