R/bicfun.R

Defines functions bicfun

bicfun <-
function(penalty, yy, B, quantile, DD, nb, constmat)
{
    aa <- asyregpen.lsfit(yy, B, quantile, abs(penalty), DD, nb, constmat)
    
    score = log(sum(aa$weight * (yy - B %*% aa$a)^2/length(yy))) * length(yy) + log(length(yy)) * (sum(aa$diag.hat.ma))
    
    score
}

Try the expectreg package in your browser

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

expectreg documentation built on March 18, 2022, 5:57 p.m.