R/one_ypred.R

Defines functions one_ypred

Documented in one_ypred

#' Calculate the predictions of the response variable for one condition
#' \code{one_ypred} calculate the predictions of the response variable for one
#' condition
#' @keywords internal
#' @export
one_ypred <- function(d,log, groups, averages, x, psyfunguesslapses) {
  if (length(groups) != 0) averages <- semi_join(averages, d, by = groups)
  xseq <- averages[[x]]
  yseq <- psyfunguesslapses(xseq, d$par)
  data.frame(x = xseq, ypred = yseq)
}

Try the quickpsy package in your browser

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

quickpsy documentation built on Oct. 2, 2019, 5:03 p.m.