R/vec2pwm.R

"vec2pwm" <-
function(vec, as.list=FALSE) {
    if(as.list) {
       z <- list(BETA0 = vec[1], BETA1 = vec[2], BETA2 = vec[3],
                 BETA3 = vec[4], BETA4 = vec[5], source="vec2pwm")
    } else {
       z <- list(betas=vec, source="vec2pwm")
    }
    return(z)
}

Try the lmomco package in your browser

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

lmomco documentation built on Aug. 30, 2023, 5:10 p.m.