

% RANDOMLY DRAW PARAMETER VS-LITE FROM DISTRIBUTIONS
aT1 = 9; bT1 = (aT1+1)/2;
slpT1 = 7; intT1 = 0;
aT2 = 3.5; bT2 = aT2;
slpT2 = 14; intT2 = 10;
slpM1 = 0.1; intM1 = 0.0;
aM1 = 1.5; bM1 = (1-.035/slpM1)*aM1/(.035/slpM1); % .035 is target mean
slpM2 = 0.4; intM2 = 0.1;
aM2 = 1.5; bM2 = (1-(.25-intM2)/slpM2)*aM2/((.25-intM2)/slpM2); % .25 is target mean

t1=zeros(5000,1);
for i=1:5000
    t1(i) = slpT1*betarnd(aT1,bT1)+intT1;
end

figure
histogram(t1,100)
