.
-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:
library(quantreg)
library(survival)
set.seed(789)
N - 2000
u
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:
library(quantreg)
library(survival)
set.seed(789)
N - 2000
u - runif(N)
x1 - rbinom(N,1,.5)
x2 - rbinom(N
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.numeric(y=c)
3 matches
Mail list logo