R/plmd.R

Defines functions rcModelPLMd

Documented in rcModelPLMd

rcModelPLMd <- function(y,group.labels){
  if (!is.matrix(y))
    stop("argument should be matrix")

  if (length(group.labels) != ncol(y)){
    stop("group labels is of incorrect length")
  }  

  if (!is.factor(group.labels)){
    group.labels <- as.factor(group.labels)
  }
  
  if (any(table(group.labels) < 2)){
     stop("Must be at least two arrays in each group")
  }

  
  group.int <- as.integer(group.labels) -1
	
  PsiCode <- 0
  PsiK <- 1.345


  .Call("R_plmd_model",y,PsiCode,PsiK,as.integer(group.int),as.integer(length(unique(group.labels))),PACKAGE="preprocessCore")
							 
}

Try the preprocessCore package in your browser

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

preprocessCore documentation built on Jan. 10, 2021, 2:01 a.m.