function - cv.glm cutoff value of 0.75 in r -


i doing analysis regarding binomial glm model have fitted earlier in r. while looking @ data, figured out suitable cutoff point binary outcome should 0.75 instead of 0.5. trying cost() function of cv.glm() {boot package} use 0.75 cutoff point, have failed right syntax.

i know 0.5 cutoff use:

cost <- function(r, pi = 0) mean(abs(r-pi) > 0.5) 

can show me right way change cutoff point in function? (let's stick 0.75 maybe).


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -