Hi,

I am running quantile regressions with replicates, but I don't know how to calculate the Pseudo R squared for quantile regression with replicates. I have used the following commands:


rho <- function(u,tau=.5)u*(tau - (u < 0))
        V <- sum(rho(fit$resid, fit$tau))

where fit is my objective function


However, I get the following error message:


 Error in fit$resid : $ operator is invalid for atomic vectors



Any suggestion please
--
Dr. Donia Smaali Bouhlila
Associate-Professor
Department of Economics
Faculté des Sciences Economiques et de Gestion de Tunis

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to