R/assoc.twocont.by.R

Defines functions assoc.twocont.by

Documented in assoc.twocont.by

assoc.twocont.by <- function(x, y, by, weights = NULL, na.rm = FALSE, nperm = NULL, distrib = "asympt") {
  df <- data.frame(x,y)
  spl <- split(df, by)
  res <- lapply(spl, function(z) with(z, assoc.twocont(x,y,weights = weights,na.rm=na.rm,nperm=nperm,distrib=distrib)))
  return(res)
}

Try the descriptio package in your browser

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

descriptio documentation built on Sept. 9, 2025, 5:51 p.m.