I am trying to do a simple simulation where I create several different replication datasets (replicating a known dataset I have). I'm using SAS 9.4 and here is the code I'm trying to use for simulation (found on: http://sas-and-r.blogspot.com/2010/03/example-730-simulate-censored-survival.html😞 data simcox; beta1 = 2; lambdat = 0.002; *baseline hazard; lambdac = 0.004; *censoring hazard; do i = 1 to 1000; x1 = rand("Bernoulli",0.5); linpred = exp(-beta1*x1); t = rand("WEIBULL", 1, lambdaT * linpred); * time of event; c = rand("WEIBULL", 1, lambdaC); * time of censoring; time = min(t, c); * which came first?; censored = (c lt t); output; end; run; I am having trouble figuring out the values to use (bold in red). How do I know what to specify beta and lambdas as? Is there a way to find estimates of these values by running a Cox model on my known data, then using these estimated values of beta and lambdas for my simulation? If so, please explain in detail how to find these. Thank you.
... View more