R/int_prems.R

Defines functions int_prems

Documented in int_prems

#' int_prems
#' to be documented
#' @usage int_prems(X)
#' @param X  to be documented
#' @keywords internal
#' @return to be documented
int_prems <-
function(X){
col_int<-which(apply(X,2,function(x) sd(x)==1-mean(x)))
if(sum(col_int)!=0) cbind(X[,col_int],X[,-col_int]) else X
}

Try the mgwrsar package in your browser

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

mgwrsar documentation built on April 17, 2023, 9:09 a.m.