R/LSfunctional.r

LSfunctional <- function(f1, g1, w1, f2, g2, w2){

    res <- sum(w1 * (f1 - g1) ^ 2) + sum(w2 * (f2 - g2) ^ 2)
    return(res)
}

Try the OrdMonReg package in your browser

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

OrdMonReg documentation built on May 2, 2019, 1:45 p.m.