R/get_delta_mat.R

Defines functions get_delta_mat

get_delta_mat <- function(deltas, comparisons, comps, mean_comps) {

  n_delta <- length(deltas)
  poss_comps0 <- create_comparison_matrix(comparisons, comps, mean_comps)
  
  delta_mat <- NULL
  for(d in 1:n_delta) {
    delta_mat <- rbind(delta_mat, deltas[d] * poss_comps0)
  }

  return(delta_mat)
  
}

Try the codaredistlm package in your browser

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

codaredistlm documentation built on Dec. 23, 2022, 1:29 a.m.