R/F_seq_k.R

Defines functions seq_k

Documented in seq_k

#' A small auxiliary function for the length of the lambdas
#'
#' @param y an integer, the current dimension
#' @param nLambda1s the number of centering restrictions
#'
#' @return a vector containing the ranks of the current lagrangian multipliers
seq_k = function(y, nLambda1s = 1) {
    (y - 1) * (1 + nLambda1s + (y - 2)/2) + 
        seq_len(y + nLambda1s)
}

Try the RCM package in your browser

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

RCM documentation built on Nov. 8, 2020, 5:22 p.m.