powered by
generating the simulation data to apply in brace
brace
gendat(nsims, nobs, f, g, b, w1, w2, omegaplus, theta1, theta2, k3)
a matrix of nsims*nobs row, which consists of nsims datasets
number of simulation datasets
number of observations for one dataset
parameter for generating unmeasured binary confounder
parameter for generating group assignment
confounder effect on group assignment
shape parameter in generating survival time for event 1 from weibull distribution
shape parameter in generating survival time for event 2 from weibull distribution
multiplier on the baseline hazard for event 1
multiplier on the baseline hazard for event 2
nsims = 1; nobs = 1500 f = 0.5; g = 0.333; b = 8; w1 = w2 = 0.667 theta1 = 0.5; theta2 = 1; omegaplus = 1; k3 = 0.333 sim1 = gendat(nsims,nobs,f,g,b,w1,w2,omegaplus,theta1,theta2,k3)
Run the code above in your browser using DataLab