R/Step.pred.R

Defines functions Step.pred

Documented in Step.pred

Step.pred <- function(RS, percent)
{ 
     if (percent < 0 | percent > 100)
         stop("Value of the argument ``ercent'' should be between 0 and 100")
     cut <- RS[order(RS, decreasing = TRUE)[round(length(RS) * percent)/100]]
     pass <- as.numeric(RS >= cut)
     res <- list(RS.cut = cut, ind = pass)   

 return(res)

}

Try the stepwiseCM package in your browser

Any scripts or data that you put into this service are public.

stepwiseCM documentation built on May 31, 2017, 11:47 a.m.