R/aicfun_ipc.R

Defines functions aicfun_ipc

aicfun_ipc <-
function(penalty, yy, B, quantile, DD, nb, constmat, KMweights, hat1 = FALSE)
{
    
    aa <- asyregpen_ipc(yy, B, quantile, abs(penalty), DD, nb, constmat, KMweights = KMweights, hat1 = hat1) #!
    
    score = log(sum(aa$weight * (yy - B %*% aa$a)^2/length(yy))) * length(yy) + 2 * (sum(aa$diag.hat.ma))
    
    score
}

Try the dirttee package in your browser

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

dirttee documentation built on Sept. 14, 2022, 5:06 p.m.