[R] quantile regression with complex survey data

2014-09-16 Thread Donia Smaali Bouhlila
t; 0)) V <- sum(rho(f$resid, f$tau)) when I type > rho <- function(u,tau=.5)u*(tau - (u < 0)) V <- sum(rho(fit$resid, fit$tau)) I get the following message Error in fit$resid : $ operator is invalid for atomic vectors Any help please -- Dr. Donia Smaali Bouhlila Associa

[R] Pseudo R squared for quantile regression with replicates

2014-09-17 Thread Donia Smaali Bouhlila
here 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 Ge

[R] Pseudo R squared for quantile regression with replicates

2014-09-18 Thread Donia Smaali Bouhlila
e" "calculator" ... .. ..- attr(*, "means")= Named num [1:19] 710.97 -24.03 -18.3 9.39 7.58 ... .. .. ..- attr(*, "names")= chr [1:19] "(Intercept)" "Female" "Age" "calculator" ... ..- attr(*, "statistic")= chr

Re: [R] Pseudo R squared for quantile regression with replicates

2014-09-19 Thread Donia Smaali Bouhlila
t(rq(...)), but not the output from withReplicates(..., quote(coef(rq(... which is what fit is. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.or

Re: [R] Pseudo R squared for quantile regression with replicates

2014-09-19 Thread Donia Smaali Bouhlila
he output from withReplicates(..., quote(coef(rq(... which is what fit is. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...