R/phi_ij.R

#' Helping function
#'
#' @description transfers the list to one vector
#' @param phi list of samples for mixed effect
#' @param i component of vector
#' @param j which individual
#'
#' @return samples for the i-th component of \eqn{\phi_j}
#' @export



phi_ij <- function(phi,i,j){
  sapply(phi, function(mat){mat[i,j]})
}
SimoneHermann/hierRegSDE documentation built on May 9, 2019, 1:46 p.m.