Re: [R] censored quantile regression

2015-02-06 Thread Ashley Isaac Naimi, Mr
sender is prohibited and may be unlawful. -Original Message- From: Ashley Isaac Naimi, Mr [mailto:ashley.na...@mcgill.ca] Sent: Tuesday, January 20, 2015 7:52 AM To: r-help@r-project.org Subject: [R] censored quantile regression Hi there, I've generated the following data: libr

Re: [R] censored quantile regression

2015-02-06 Thread Allen Bingham
ments without permission from the sender is prohibited and may be unlawful. -Original Message- From: Ashley Isaac Naimi, Mr [mailto:ashley.na...@mcgill.ca] Sent: Tuesday, January 20, 2015 7:52 AM To: r-help@r-project.org Subject: [R] censored quantile regression Hi there, I've gen

[R] censored quantile regression

2015-01-20 Thread Ashley Isaac Naimi, Mr
Hi there, I've generated the following data: library(quantreg) library(survival) set.seed(789) N <- 2000 u <- runif(N) x1 <- rbinom(N,1,.5) x2 <- rbinom(N,1,.5) x1x2<-x1*x2 lambda <- 1 + 1.5*x1 + 1.5*x2 + .5*x1x2 k <- 2 y <- lambda*((-log(1-u))^(1/k));max(y) c <- runif(N,max=15) event = as.numer