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...

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-18 Thread Anthony Damico
t.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Donia Smaali Bouhlila > Sent: Thursday, September 18, 2014 9:54 AM > To: r-help@r-project.org > Subject: [R] Pseudo R squared for quantile regression with replicates > > Hi, > > > I am a new user of r software. I inte

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

2014-09-18 Thread David L Carlson
4 9:54 AM To: r-help@r-project.org Subject: [R] Pseudo R squared for quantile regression with replicates Hi, I am a new user of r software. I intend to do quantile regressions with complex survey data using replicate method. I have ran the following commands successfully: mydesign <-svy

[R] Pseudo R squared for quantile regression with replicates

2014-09-18 Thread Donia Smaali Bouhlila
Hi, I am a new user of r software. I intend to do quantile regressions with complex survey data using replicate method. I have ran the following commands successfully: mydesign <-svydesign(ids=~IDSCHOOL,strata=~IDSTRATE,data=TUN,nest=TRUE,weights=~TOTWGT) bootdesign <- as.svrepdesign(myd

[R] Pseudo R squared for quantile regression with replicates

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