R/lassop.R

Defines functions lassop

Documented in lassop

lassop=function(data,Y,z,grp,D,mu,step,fix,rand,penalty.factor,alpha,showit)
{
	q=ncol(z)
if(missing(D)&(q==1)){D=1}
if(missing(D)&(q>1)){D=0}

if(D==0){
out=lassop_nodiag(data,Y,z,grp,mu,step,fix,rand,penalty.factor,alpha,showit)
	}else{
out=lassop_diag(data,Y,z,grp,mu,step,fix,rand,penalty.factor,alpha,showit)
	}
out$call=match.call()

out
}

Try the MMS package in your browser

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

MMS documentation built on May 2, 2019, 12:38 p.m.