title: this is an example of a continous-time
survival analysis using the Cox regression model
montecarlo:
names = t x w;
generate = t(s 20*1);
hazardc = t (.5);
ncsizes = 3;
csizes = 40 (5) 50 (10) 20 (15);
within = x;
between = w;
survival = t(all);
nobs = 1000;
nreps = 1;
save = ex9.18.dat;
model population:
%within%
x@1;
t on x*.5;
%between%
w@1;
[t#1-t#21*1];
t on w*.2;
t*.5;
analysis:
type = twolevel;
basehazard = off;
model:
%within%
t on x*.5;
%between%
t on w*.2;
t*.5;
output:
tech8 tech9;