R/aicfun.R

Defines functions aicfun

aicfun <-
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) + 2 * (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.