# NOT RUN {
## generate data and covariates.
X <- -99:100/50 ## the covariate for alpha, 200 long
temp <- simuDataYP(n1=100, n2=100, th1=exp(1), th2=exp(-1), cens=TRUE, alphaX = -0.5*X)
## this generate a sample of censored data with n=200. beta1=1, beta2=-1, alpha= -0.5.
## and the design matrix or covariance matrix is
Zmat <- cbind(X, temp$Zmat)
# }
Run the code above in your browser using DataLab