%% Setting up profile generator %% Drug holidays % dh distribution dh=[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,3,3]; nbins_dh = 0:3; % generating dh random deviates r=randi([1 length(dh)]); dh_i=dh(r); %% Random missed doses % rmd distribution possible_md = 0:1:150; mean_md = 13; % generating rmd random deviates md_i=poissrnd(mean_md); %% timing for bimodal normal prob, mu1, mu2, sigma1, sigma2 paramEsts=[ 0.9145 1.0725 7.4758 0.9176 4.6886]; p=paramEsts(1,1); mu1Est=paramEsts(1,2); mu2Est=paramEsts(1,3); sigma1Est=paramEsts(1,4); sigma2Est=paramEsts(1,5);