R/QR.mm.R

Defines functions QR.mm

Documented in QR.mm

QR.mm = function(X, y, tau, beta, maxit, toler)
{

if(missing(toler)){
	toler = 1e-3
	
}

if(missing(maxit))
{
maxit = 200
}

n=dim(X)[1]
x=cbind(rep(1,n),X)

if(missing(beta)){
	beta=solve(t(x)%*%x,t(x)%*%y)
}

betah=QRMMCPP(X,y,beta,toler,maxit,tau)
beta=matrix(betah[-1])
b=betah[1]
return(list(beta=beta,b=b))
}

Try the cqrReg package in your browser

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

cqrReg documentation built on June 7, 2022, 9:06 a.m.